CVE-2026-19552

ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity

Published Nov 9, 2026 CVSS 4.0 · 0 Low EPSS < 1% KEV · Not listed
Description
When ca_certs parameter was supplied to ssl.get_server_certificate() function, the identity of the certificate is not checked.

Analysis

AI-generated

Technical impact

The flaw allows an attacker to intercept TLS connections that use Python's ssl.get_server_certificate with the ca_certs argument, because the function verifies the certificate chain but does not verify that the certificate belongs to the intended host. This omission permits a man‑in‑the‑middle attack in which a malicious server presents a trusted certificate chain to the client while the identity of the host is never verified, potentially exposing sensitive data and enabling credential theft.

Affected Systems

Affected systems are CPython implementations distributed by the Python Software Foundation. No specific version range is provided, so any release that contains the unpatched ssl module may be vulnerable. Administrators should review the Python changelog for a fix once available.

Risk and Exploitability

The EPSS score is < 1%, indicating a very low but non-zero exploitation probability. The vulnerability is not listed in CISA KEV, but the lack of hostname verification makes it a serious risk. The likely exploitation path involves passive network interception or DNS spoofing; however, this inference is based on the nature of the vulnerability rather than explicit statement in the data. The CVSS metric is missing, and the potential impact on confidentiality, integrity, and availability warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a patched Python release that enforces server identity in ssl.get_server_certificate when ca_certs is provided.
  • If an upgraded Python is not available, avoid using ca_certs with ssl.get_server_certificate; instead perform explicit hostname verification or use a library that does it.
  • Ensure all remote TLS connections have hostname verification enabled and test connectivity against trusted certificates.

Generated by OpenCVE AI on November 15, 2026 at 10:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-297
Type Values Removed Values Added
Weaknesses CWE-295
Type Values Removed Values Added
First Time appeared Python
Python cpython
Python Software Foundation
Python Software Foundation cpython
Vendors & Products Python
Python cpython
Python Software Foundation
Python Software Foundation cpython
Type Values Removed Values Added
Weaknesses CWE-297
Type Values Removed Values Added
Description When ca_certs parameter was supplied to ssl.get_server_certificate() function, the identity of the certificate is not checked.
Title ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity
References
Metrics cvssV4_0

{'score': 0, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Nov 12, 2026, 4:30 PM
Reserved
Aug 11, 2026, 3:22 PM
Status
Awaiting Analysis
Published
Nov 9, 2026, 3:17 PM
Modified
Nov 12, 2026, 5:17 PM