Use-after-free of a server-side SSLContext when sni_callback switches contexts
- CVE-2026-19445
- GHSA-7jvw-f348-84gq
- EUVD-2026-90077
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.
Text from the CVE.org record.
Affected
Python Software Foundation CPython
- before 3.10.22
- from 3.11.0 to before 3.11.17
- from 3.12.0 to before 3.12.15
- from 3.13.0 to before 3.13.16
- from 3.14.0 to before 3.14.8
- from 3.15.0a1 to before 3.15.0rc3
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
- from V3.1.7 onwards
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
- from V3.1.7 onwards
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
- from V3.1.7 onwards
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
- from V3.1.7 onwards
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
- from V3.1.7 onwards
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.