Advisory

GHSA-5pwr-322w-8jr4

Also known as: CVE-2026-27459, PYSEC-2026-2269

Summary

pyOpenSSL DTLS cookie callback buffer overflow

Details

If a user provided callback to set_cookie_generate_callback returned a cookie value greater than 256 bytes, pyOpenSSL would overflow an OpenSSL provided buffer.

Cookie values that are too long are now rejected.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-03-16 16:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

pyopenssl

PyPI · All systems

Affected

  • introduced 22.0.0, fixed 26.0.0 (ecosystem)

Fixed versions

26.0.0

Fix

  • Fixed version 26.0.0
    pip install --upgrade pyopenssl==26.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences