Skip to content
Threat Brief

← All advisories

CVE-2026-19553

High 7.6No known exploitationFix available

SSLContext.wrap_bio() missing validation of server_hostname parameter

Record last updated

CVSS score

7.6

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 47% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

Description

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.

Weakness: CWE-297

Patching and mitigation

Patch status
Fix available (source: Microsoft MSRC)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
mail.python.org (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Microsoftazl3 python3 3.12.14-2 on Azure Linux 3.0Not documented3.12.15-1Microsoft MSRC
Python Software FoundationCPythonfrom 3.11.0 before 3.11.173.11.17CVE Program
Python Software FoundationCPythonfrom 3.12.0 before 3.12.153.12.15CVE Program
Python Software FoundationCPythonfrom 3.13.0 before 3.13.163.13.16CVE Program
Python Software FoundationCPythonfrom 3.14.0 before 3.14.83.14.8CVE Program
Python Software FoundationCPythonfrom 3.15.0a1 before 3.15.0rc33.15.0rc3CVE Program
Python Software FoundationCPythonall versions before 3.10.223.10.22CVE Program

Timeline

  1. Disclosure

    CVE record published by PSF

    Source: CVE Program (opens in a new tab)

  2. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  3. Advisory change

    Microsoft advisory revised (2.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  4. Advisory change

    Microsoft advisory revised (3.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  5. Advisory change

    Microsoft advisory revised (4.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  6. Advisory change

    Microsoft advisory revised (5.0): Information published.

    Source: Microsoft MSRC (opens in a new tab)

  7. Patch

    Fix documented by Microsoft MSRC

    Source: Microsoft MSRC (opens in a new tab)

Vendor guidance and references