Read the docs

Missing identity check in CPython ssl.get_server_certificate with ca_certs

Priority LOW 3CWE-295Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00302 23rd percentileScored 2026-11-16
Fix Fixed CPython (Python Software Foundation): 3.16.0a2

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

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.16.0a23.16.0a2Patch availableCNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
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

  1. 2026-11-09 Threatist record created from CVE-2026-19552
  2. 2026-11-09 Alias added: GHSA-hrvr-m27m-jc99
  3. 2026-11-10 1 new reference · CNA
  4. 2026-11-11 Fix available: Python Software Foundation/[email protected] · CNA
  5. 2026-11-12 Weakness changed · CISA ADP
  6. 2026-11-12 CISA SSVC decision points changed

References

  • 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
See all 88 →

Sources