CVE-2026-27459pyOpenSSL DTLS cookie callback buffer overflow
pyOpenSSL is a Python wrapper around the OpenSSL library. Starting in version 22.0.0 and prior to version 26.0.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. Starting in version 26.0.0, cookie values that are too long are now rejected.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | pyopenssl | Fixed | 25.0.0-1ubuntu0.1 | UBUNTU-CVE-2026-27459 |
| Ubuntu 24.04 | pyopenssl | Fixed | 23.2.0-1ubuntu0.1 | UBUNTU-CVE-2026-27459 |
| Ubuntu 22.04 | pyopenssl | Not affected vulnerable_code_not_present | ||
| Debian 14 | pyopenssl | Fixed | 26.0.0-1 | DEBIAN-CVE-2026-27459 |
| Debian 13 | pyopenssl | Fixed | 25.0.0-1+deb13u1 | DEBIAN-CVE-2026-27459 |
| Debian 12 | pyopenssl | Fix pending | DEBIAN-CVE-2026-27459 | |
| Red Hat Enterprise Linux 8 | python3-pyOpenSSL | Not affected | ||
| Red Hat Enterprise Linux 7 | pyOpenSSL | Not affected | ||
| Red Hat Enterprise Linux 7 | pyOpenSSL-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | pyOpenSSL | Not affected | ||
| Alpine Linux 3.24 | py3-openssl | Fixed | 26.1.0-r0 | ALPINE-CVE-2026-27459 |
| Alpine Linux 3.23 | py3-openssl | Fixed | 26.1.0-r0 | ALPINE-CVE-2026-27459 |
| PyPI library | pyopenssl | Fixed | 26.0.0 | PYSEC-2026-2269 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pyca pyopenssl: affected: >= 22.0.0, < 26.0.0
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.