CVE Program
CNA-CVE-2026-19552
ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity
Details
When ca_certs parameter was supplied to ssl.get_server_certificate() function, the identity of the certificate is not checked.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Python | python | All versions before 3.16.0a2 (fixed in 3.16.0a2) |
References
- https://www.cve.org/CVERecord?id=CVE-2026-19552
- https://github.com/python/cpython/pull/161507
- https://github.com/python/cpython/issues/161503
- https://mail.python.org/archives/list/[email protected]/thread/SXBD6BGHDBTGM4KSUMQEWYIQ5RO4BQ76/
- https://github.com/python/cpython/commit/8dde46eaa6baf5f027a7234845b20d50b509624e