CVE-2026-19445
Critical 9.2No known exploitationFix availableUse-after-free of a server-side SSLContext when sni_callback switches contexts
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 53% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
A remote, unauthenticated TLS client can make a server crash or call through a freed pointer if its sni_callback assigns a different context to SSLSocket.context (the documented way to select a certificate per server name) and nothing else keeps the original ssl.SSLContext alive. Typical cases are servers that create an SSLContext per connection or replace it while connections are open; servers that wrap their listening socket with it are not affected. Mitigation: keep a reference to every SSLContext that sets sni_callback for the lifetime of the server. TLS clients are not affected.
Weakness: CWE-416
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
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl3 python3 3.12.14-2 on Azure Linux 3.0 | Not documented | 3.12.15-1 | Microsoft MSRC |
| Python Software Foundation | CPython | from 3.11.0 before 3.11.17 | 3.11.17 | CVE Program |
| Python Software Foundation | CPython | from 3.12.0 before 3.12.15 | 3.12.15 | CVE Program |
| Python Software Foundation | CPython | from 3.13.0 before 3.13.16 | 3.13.16 | CVE Program |
| Python Software Foundation | CPython | from 3.14.0 before 3.14.8 | 3.14.8 | CVE Program |
| Python Software Foundation | CPython | from 3.15.0a1 before 3.15.0rc3 | 3.15.0rc3 | CVE Program |
| Python Software Foundation | CPython | all versions before 3.10.22 | 3.10.22 | CVE Program |
Timeline
Disclosure
CVE record published by PSF
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Advisory change
Microsoft advisory revised (4.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d (opens in a new tab)patch
- https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b (opens in a new tab)patch
- https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7 (opens in a new tab)patch
- https://github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8 (opens in a new tab)patch
- https://github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698 (opens in a new tab)patch
- https://github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c (opens in a new tab)patch
- https://github.com/python/cpython/commit/ec44b5a3258cbda947d5e07242ee562ed05ef24b (opens in a new tab)patch
- https://github.com/python/cpython/pull/158504 (opens in a new tab)patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/ (opens in a new tab)vendor-advisory
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/09/30/17 (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html (opens in a new tab)
- https://github.com/python/cpython/issues/156293 (opens in a new tab)issue-tracking