Missing identity check in CPython ssl.get_server_certificate with ca_certs
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Spoofing
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-295.
Summary
CPython versions from 0 before 3.16.0a2 do not check the identity of the server certificate when the ca_certs parameter is supplied to ssl.get_server_certificate(). The certificate chain is verified against the given CA certificates, but the certificate is never matched to the requested host, which is an improper certificate validation flaw (CWE-295). A remote attacker who can present a certificate signed by a trusted CA can impersonate the server without any privileges or user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the CNA
When ca_certs parameter was supplied to ssl.get_server_certificate() function, the identity of the certificate is not checked.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Python Software Foundation | CPython | before 3.16.0a2 | 3.16.0a2 | Patch available | CNA |
- CPython VendorPython Software Foundation Affected before 3.16.0a2 Fixed in 3.16.0a2 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | — | — | python-pillow |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions — — ·python-pillow
Remediation
Upgrade CPython to version 3.16.0a2 or later, which fixes the flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
- Fix · CNA CPython (Python Software Foundation) Fixed in 3.16.0a2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Python Software Foundation CPython 3.16.0a2
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2026-87145 CPython cookiejar lets expired Set-Cookie delete other cookiesPriority LOW 28
Timeline
- 2026-11-09 Threatist record created from CVE-2026-19552
- 2026-11-09 Alias added: GHSA-hrvr-m27m-jc99
- 2026-11-10 1 new reference · CNA
- 2026-11-11 Fix available: Python Software Foundation/[email protected] · CNA
- 2026-11-12 Weakness changed · CISA ADP
- 2026-11-12 CISA SSVC decision points changed
References
More Python Software Foundation vulnerabilities
- TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
- TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
- TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
- TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
- TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
- TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
Sources
- CVE-2026-19552 · CVE Program
- CVE-2026-19552 · NVD
- FIRST EPSS
- GHSA-hrvr-m27m-jc99 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences