CVE-2026-27459: CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in pyca pyopenssl
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.
AI Analysis
Technical Summary
pyOpenSSL versions >=22.0.0 and <26.0.0 contain a classic buffer overflow vulnerability (CWE-120) triggered when a user callback to set_cookie_generate_callback returns a cookie value exceeding 256 bytes. This causes an overflow of an OpenSSL buffer. The vulnerability has a CVSS 4.0 base score of 7.2, indicating high severity. The issue is fixed in version 26.0.0 by rejecting overly long cookie values. Red Hat advisories confirm the vulnerability and provide updates for affected products including Red Hat Ansible Automation Platform 2.5 that bundle pyOpenSSL.
Potential Impact
An attacker who can control the cookie value returned by the callback may cause a buffer overflow in the OpenSSL buffer used by pyOpenSSL. This could potentially lead to memory corruption, denial of service, or other undefined behavior. The CVSS score of 7.2 reflects a high impact with network attack vector, high complexity, and partial privileges required. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version of pyOpenSSL is available starting at version 26.0.0, which rejects cookie values longer than 256 bytes, preventing the buffer overflow. Users should upgrade pyOpenSSL to version 26.0.0 or later. Red Hat has issued security advisories and errata with patches for affected products that include pyOpenSSL. Applying these vendor-provided updates is the recommended remediation. Patch status is confirmed by Red Hat advisories linked in the vendor advisory content.
CVE-2026-27459: CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in pyca pyopenssl
Description
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.
CVSS v4.0
Score 7.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
pyOpenSSL versions >=22.0.0 and <26.0.0 contain a classic buffer overflow vulnerability (CWE-120) triggered when a user callback to set_cookie_generate_callback returns a cookie value exceeding 256 bytes. This causes an overflow of an OpenSSL buffer. The vulnerability has a CVSS 4.0 base score of 7.2, indicating high severity. The issue is fixed in version 26.0.0 by rejecting overly long cookie values. Red Hat advisories confirm the vulnerability and provide updates for affected products including Red Hat Ansible Automation Platform 2.5 that bundle pyOpenSSL.
Potential Impact
An attacker who can control the cookie value returned by the callback may cause a buffer overflow in the OpenSSL buffer used by pyOpenSSL. This could potentially lead to memory corruption, denial of service, or other undefined behavior. The CVSS score of 7.2 reflects a high impact with network attack vector, high complexity, and partial privileges required. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version of pyOpenSSL is available starting at version 26.0.0, which rejects cookie values longer than 256 bytes, preventing the buffer overflow. Users should upgrade pyOpenSSL to version 26.0.0 or later. Red Hat has issued security advisories and errata with patches for affected products that include pyOpenSSL. Applying these vendor-provided updates is the recommended remediation. Patch status is confirmed by Red Hat advisories linked in the vendor advisory content.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-19T17:25:31.100Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-27459","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13512","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10754","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14874","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13508","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14873","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:14835","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13553","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13545","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7224","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11856","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21017","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:24853","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19375","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22465","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11916","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:11996","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8437","vendor":"Red Hat"}]
Threat ID: 69b9e71a771bdb1749eb4c6c
Added to database: 03/17/2026, 23:43:22 UTC
Last enriched: 07/31/2026, 14:13:32 UTC
Last updated: 07/31/2026, 19:30:11 UTC
Views: 906
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.