CVE-2026-19445
CVE-2026-19445 — Use-after-free of a server-side SSLContext when sni_callback switches contexts
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.
Published Updated Sources: cvelistV5, PSF
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Exploit code
public exploit, none observed
EPSS
0%
chance of exploitation in 30 days
CVSS base
9.2
CRITICAL
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.2 | CVSS 4.0 | CRITICAL | — | — | cvelistV5 |
Weakness & attack patterns
- CWE-416
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
Indexed by
References
9 on the record
- github.com/python/cpython/pull/158504
patch
- mail.python.org/archives/list/[email protected]/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/
vendor-advisory
- github.com/python/cpython/issues/156293
issue-tracking
- github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d
patch
- github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b
patch
- github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7
patch
- github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698
patch
- github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c
patch
Elsewhere on this site
- python software foundationevery CVE for this vendor
- CWE-416other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.