Open-source package vulnerability · PyPI
CVE-2026-27459: pyOpenSSL DTLS cookie callback buffer overflow
highCVSS 4.0 7.2GHSA-5pwr-322w-8jr4
If a user provided callback to setcookiegeneratecallback returned a cookie value greater than 256 bytes, pyOpenSSL would overflow an OpenSSL provided buffer. Cookie values that are too long are now rejected.
Published Mar 16, 2026 · Updated Mar 19, 2026
Affected packages
pyopenssl
- Ecosystem
- PyPI
- Affected
- >= 22.0.0, < 26.0.0
- Fixed in
- 26.0.0
- Check
pip show pyopenssl
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to justlife4x4.
References
- https://github.com/pyca/pyopenssl/security/advisories/GHSA-5pwr-322w-8jr4
- https://github.com/pyca/pyopenssl/commit/57f09bb4bb051d3bc2a1abd36e9525313d5cd408
- https://github.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst
- https://nvd.nist.gov/vuln/detail/CVE-2026-27459
- https://github.com/advisories/GHSA-5pwr-322w-8jr4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
