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 package | Versions | Reported by |
|---|---|---|
| pyca pyopenssl | >= 0.14.0, < 26.0.0 | CVE List |
| pyopenssl (PyPI) | from 0.14.0 before 26.0.0, from 0.14 before 26.0.0 | GitHub Advisory Database, PyPA Advisory Database |
| pyopenssl pyopenssl | from 0.14 before 26.0.0 | NVD |
All scores
| GitHub_M | 1.7low CVSS:4.0 | 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 |
| GitHub | low CVSS:4.0 | 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 |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| PyPA Advisory Database | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
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
| https://github.com/pyca/pyopenssl/security/advisories/GHSA-vp96-hxj8-p424 | advisory, vendor-advisory, web | |
| https://github.com/pyca/pyopenssl/commit/d41a814759a9fb49584ca8ab3f7295de49a85aa0 | fix, patch, web | |
| https://github.com/pyca/pyopenssl/blob/358cbf29c4e364c59930e53a270116249581eaa3/CHANGELOG.rst#L27 | advisory, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-27448 | advisory | |
| https://github.com/pyca/pyopenssl | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27448 changed 2026-03-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vp96-hxj8-p424 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-27448 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2268 changed 2026-07-13 | CC-BY-4.0 |