Critical severity · published Sep 30, 2026
CVE-2026-19445
Use-after-free of a server-side SSLContext when sni_callback switches contexts
9.2
CVSS
0.5%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 44% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.10.22; 3.11.0 before 3.11.17; 3.12.0 before 3.12.15; 3.13.0 before 3.13.16; 3.14.0 before 3.14.8; 3.15.0a1 before 3.15.0rc3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-19445
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-19445
patch
https://github.com/python/cpython/pull/158504
vendor-advisory
https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/
issue-tracking
https://github.com/python/cpython/issues/156293
patch
https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d
patch
https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b
patch
https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7
More from CPython
9.4
CVE-2026-115557
Distrust compromised intermediate certificates in ssl module
8.8
CVE-2026-3298
Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
8.4
CVE-2026-82049
tarfile extraction filters allow file modification and content disclosure via hard link to symlink
8.2
CVE-2026-11972
tarfile opened in streaming mode mishandles EOF
8.2
CVE-2026-9669
bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow
