GitHub Advisoryadvisory · PyPI

GHSA-5pwr-322w-8jr4 pyOpenSSL DTLS cookie callback buffer overflow

HIGH Published 2026-03-16 Modified 2026-03-19 Official page ↗
Aliases
CVE-2026-27459
Ecosystem
PyPI
Packages
pyopenssl
Severity
High
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Weaknesses
CWE-120
Reviewed
2026-03-16

Affected packages

• PyPI pyopenssl: >= 22.0.0, < 26.0.0 → fixed in 26.0.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2026-27459 pyOpenSSL is a Python wrapper around the OpenSSL library. vulnerability

Weakness · CWE (1)

  • CWE-120 Buffer Copy without Checking Size of Input weakness

References