Python Software Foundation CPython
SSLContext.wrap_bio() missing validation of server_hostname parameter
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.10.22
- >= 3.11.0, < 3.11.17
- >= 3.12.0, < 3.12.15
- >= 3.13.0, < 3.13.16
- >= 3.14.0, < 3.14.8
- >= 3.15.0a1, < 3.15.0rc3
Fixed in 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc3
Mitigation
Upgrade CPython to 3.10.22 or 3.11.17 or 3.12.15 or 3.13.16 or 3.14.8 or 3.15.0rc3 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.4 days after publication; not in CISA KEV. First PoC: abraxas/cve-2026-19553-wrap-bio (created 2 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 1 pending
PoCs 2
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| abraxas/cve-2026-19553-wrap-bio | 2 Oct 2026 +1.4 d | backfilled | 0 | PoC |
| Tharsh2003/INF2005-ACW3-PythonSSL | 4 Nov 2026 +34 d | 14 Nov 2026 | 0 | PoC via PoC Index |
Pending 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| monkeyyey/acw3-tls-lab | 8 Nov 2026 +39 d | 14 Nov 2026 | 0 | Pending |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.