← All Advisories
Reported from OT-Advisories.com as of

A Missing Parameter Check in Python's SSLContext.wrap_bio() Silently Skips Hostname Verification Even With check_hostname Enabled

Last refreshed2026-11-19

Status: UPDATED  |  Advisory ID: CVE-2026-19553

Key Details

CVECVE-2026-19553
CVSS Score / Version
7.6 (High) / CVSS v4.0
Updated2026-11-10
Affected products
see table below
Classified as
CWE-297 (Improper Validation of Certificate with Host Mismatch)
Exploitation prediction (EPSS)
0.55% probability of exploitation in the next 30 days (47% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
Python Software FoundationCPython
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
SubsystemsControllers & Field I/O
SectorsMultiple

What to Know

ssl.SSLContext.wrap_bio() didn't require the server_hostname argument

to not be None if ssl.SSLContext.check_hostname was set. Due to a

missing parameter check in SSLObject, if the server_hostname argument

isn't supplied then hostname verification would be silently skipped.

This defect could lead to programs where certificate hostname verification

*appeared* to be succeeding with SSLContext.check_hostname = True and no

ValueError being raised due to misconfiguration.

If the program passes a server_hostname value that isn't an empty string

or None to any of these APIs then certificate hostname verification

proceeds as expected and the program is not affected by this vulnerability.

Mitigating this vulnerability doesn't require updating Python or applying

the patch. To mitigate, pass a valid non-None and non-empty

server_hostname value to SSLContext.wrap_bio(),

asyncio.create_connection(), or asyncio.loop.start_tls() and

certificate hostname verification will proceed as expected. Upgrading to

the latest version of Python or applying the patch only changes the

behavior from silently skipping hostname verification to raising a

ValueError, similar to SSLContext.wrap_socket(), when server_hostname

isn't supplied. (NVD)

What to Do

Currently no fix is available
Source: Siemens SSA-457936

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-19553
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-19553
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.