cve.bz

CVE-2026-27459 pyopenssl pyopenssl: Classic Buffer Overflow

7.2 highEPSS 0.8%Fix available

High (7.2) in pyopenssl pyopenssl. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in pyopenssl 26.0.0.

On this page
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.

Severity

CVSS 4.0

7.2 high
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-03-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-27459 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27459?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27459?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-27459 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pyopenssl:pyopensslfrom 22.0.0 before 26.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5pwr-322w-8jr4PyPIpyopenssl>=22.0.0 <26.0.026.0.0
PYSEC-2026-2269PyPIpyopenssl>=22.0.0 <26.0.026.0.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pyopensslno fix listedDEBIAN-CVE-2026-27459
Debian13pyopenssl25.0.0-1+deb13u1DEBIAN-CVE-2026-27459
Debian14pyopenssl26.0.0-1DEBIAN-CVE-2026-27459
Ubuntu24.04:LTSpyopenssl23.2.0-1ubuntu0.1UBUNTU-CVE-2026-27459
Ubuntu25.10pyopenssl25.0.0-1ubuntu0.1UBUNTU-CVE-2026-27459
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.28-3.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.5.10-5.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8automation-gateway-server, python3.12-django-ansible-base, python3.12-django-ansible-base+rbac and 9 more0:2.5.20260422-2.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8python3.12-jwcrypto0:1.5.7-1.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8python3.12-markdown0:3.10.2-1.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8python3.12-pyOpenSSL0:26.0.0-1.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8python3.12-pyasn10:0.6.3-1.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8python3.12-pyjwt, python3.12-pyjwt+crypto0:2.12.1-1.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor0:1.6.4-2.el8apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.28-3.el9apRHSA-2026:13512
Red Hatansible_automation_platform:2.5::el9automation-gateway-proxy, automation-gateway-proxy-server, automation-gateway-proxy-debugsource and 1 more0:2.6.14-2.el9RHSA-2026:13512
Red Hatansible_automation_platform:2.5::el9automation-gateway-server, python3.12-django-ansible-base, python3.12-django-ansible-base+rbac and 9 more0:2.5.20260422-2.el9apRHSA-2026:13512
41 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
122 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python-pyOpenSSL23.2.0-150400.3.13.1SUSE-SU-2026:1192-1
openSUSELeap 16.0python-pyOpenSSL25.0.0-160000.3.1openSUSE-SU-2026:20419-1
openSUSETumbleweedpython-pyOpenSSL26.0.0-1.1openSUSE-SU-2026:10392-1
Alpinev3.23, v3.24py3-openssl26.1.0-r0ALPINE-CVE-2026-27459
Azure Linux3pyOpenSSL24.2.1-2AZL-80034
Alpaquita25py3-openssl25.0.0-r1BELL-CVE-2026-27459
Alpaquitastreampy3-openssl26.0.0-r0BELL-CVE-2026-27459

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is only exploitable when an application using the pyOpenSSL library provides a custom callback to the set_cookie_generate_callback function. For the buffer overflow to occur, the callback function must return a cookie string or byte sequence longer than 256 bytes, limiting the exposure of this issue. Due to these reasons, this vulnerability has been rated with an important severity.

Red Hat's mitigation

To mitigate this flaw, ensure the callback provided to the set_cookie_generate_callback function strictly limits the returned cookie string or byte sequence to under 256 bytes.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-pyOpenSSL-0:26.0.0-1.el8apFixed 2026-05-04RHSA-2026:13512
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-pyOpenSSL-0:26.0.0-1.el9apFixed 2026-05-04RHSA-2026:13512
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-controller-0:4.7.11-2.el9apFixed 2026-05-04RHSA-2026:13508
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-pyOpenSSL-0:26.0.0-1.el9apFixed 2026-05-04RHSA-2026:13508
Red Hat Satellite 6.16 for RHEL 8python-pyOpenSSL-0:24.1.0-2.el8pcFixed 2026-05-07RHSA-2026:14874
Red Hat Satellite 6.16 for RHEL 9python-pyOpenSSL-0:24.1.0-2.el9pcFixed 2026-05-07RHSA-2026:14874
Red Hat Satellite 6.17 for RHEL 9python-pyOpenSSL-0:25.1.0-0.3.el9pcFixed 2026-05-07RHSA-2026:14873
Red Hat Satellite 6.18 for RHEL 9python3.12-pyOpenSSL-0:26.0.0-2.el9pcFixed 2026-05-07RHSA-2026:14835
RHUI 4 for RHEL 8python-pyOpenSSL-0:24.1.0-2.el8uiFixed 2026-04-27RHSA-2026:10754
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/ee-supported-rhel8:1777398315Fixed 2026-05-04RHSA-2026:13553
Confidential Compute Attestationopenshift-sandboxed-containers/osc-podvm-builder-rhel9Not affected
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Not affected
Lightspeed Corelightspeed-core/rag-tool-cpu-rhel9Not affected
Lightspeed Corelightspeed-core/rag-tool-cuda-12.9-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/eda-controller-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel8Not affected
85 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-27459.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON