CVE-2026-27448
JSON

1.7low

pyOpenSSL allows TLS connection bypass via unhandled callback exception in set_tlsext_servername_callback

Severity
1.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.46% (higher than 31% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vp96-hxj8-p424PYSEC-2026-2268

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.

Affected

Product or packageVersionsReported by
pyca pyopenssl>= 0.14.0, < 26.0.0CVE List
pyopenssl (PyPI)from 0.14.0 before 26.0.0, from 0.14 before 26.0.0GitHub Advisory Database, PyPA Advisory Database
pyopenssl pyopensslfrom 0.14 before 26.0.0NVD

All scores

GitHub_M1.7low CVSS:4.0CVSS: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
GitHublow CVSS:4.0CVSS: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
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
PyPA Advisory Database5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Classification

CWE-636

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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.

Unhandled exceptions now result in rejecting the connection.

Credit to Leury Castillo for reporting this issue.

NVD (es)

pyOpenSSL es un envoltorio de Python alrededor de la biblioteca OpenSSL. A partir de la versión 0.14.0 y antes de la versión 26.0.0, si un callback proporcionado por el usuario a `set_tlsext_servername_callback` generaba una excepción no controlada, esto daba como resultado que se aceptara una conexión. Si un usuario dependía de este callback para cualquier comportamiento sensible a la seguridad, esto podría permitir eludirlo. A partir de la versión 26.0.0, las excepciones no controladas ahora dan como resultado el rechazo de la conexión.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-27448 changed 2026-03-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-vp96-hxj8-p424 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-27448 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-2268 changed 2026-07-13CC-BY-4.0