CPython skips server identity checks in ssl.get_server_certificate
Python rates CVE-2026-19552 low: with ca_certs set, the call checks the chain but not the server identity.
Missing identity check in CPython ssl.get_server_certificate
In CPython, ssl.get_server_certificate() verifies the certificate chain when ca_certs is supplied but never checks the certificate identity. A remote peer can present a chain that validates against those CAs for a different name, with no user interaction. Callers may accept the wrong server identity. Affected builds are not listed.
What to do: Python has not listed a fixed release for CVE-2026-19552.
| Product | Affected |
|---|---|
| Python CPython | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
When ca_certs parameter was supplied to ssl.get_server_certificate() function, the identity of the certificate is not checked.
Python rates CVE-2026-19552 low: with ca_certs set, the call checks the chain but not the server identity.
Today 1.5K readers · 2.4K views · 768 reads · all time 189K views