CVE-2026-27448

pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback

Published Mar 17, 2026 CVSS 4.0 · 1.7 Low EPSS < 1% KEV · Not listed
Description
pyOpenSSL is a Python wrapper around the OpenSSL library. Starting in version 0.14.0 and prior to version 26.0.0, if a user provided callback to `set_tlsext_servername_callback` raised an unhandled exception, this would result in a connection being accepted. If a user was relying on this callback for any security-sensitive behavior, this could allow bypassing it. Starting in version 26.0.0, unhandled exceptions now result in rejecting the connection.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vp96-hxj8-p424 pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback
Ubuntu USN Ubuntu USN USN-8115-1 pyOpenSSL vulnerabilities
Ubuntu USN Ubuntu USN USN-8335-1 pyOpenSSL vulnerability
History
Type Values Removed Values Added
First Time appeared Pyopenssl
Pyopenssl pyopenssl
CPEs cpe:2.3:a:pyopenssl:pyopenssl:*:*:*:*:*:*:*:*
Vendors & Products Pyopenssl
Pyopenssl pyopenssl
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pyca
Pyca pyopenssl
Vendors & Products Pyca
Pyca pyopenssl
Type Values Removed Values Added
Description pyOpenSSL is a Python wrapper around the OpenSSL library. Starting in version 0.14.0 and prior to version 26.0.0, if a user provided callback to `set_tlsext_servername_callback` raised an unhandled exception, this would result in a connection being accepted. If a user was relying on this callback for any security-sensitive behavior, this could allow bypassing it. Starting in version 26.0.0, unhandled exceptions now result in rejecting the connection.
Title pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback
Weaknesses CWE-636
References
Metrics cvssV4_0

{'score': 1.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 18, 2026, 8:18 PM
Reserved
Feb 19, 2026, 5:25 PM
Status
Analyzed
Published
Mar 18, 2026, 12:16 AM
Modified
Jun 17, 2026, 10:27 AM
Severity
Moderate
Public date
Mar 17, 2026, 11:24 PM