# CVE-2026-19445: Use-after-free of a server-side SSLContext when sni\_callback switches contexts

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.2 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc3 (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-30 · Modified: 2026-11-10
- Aliases: ALPINE-CVE-2026-19445, RHSA-2026:74867, UBUNTU-CVE-2026-19445, DEBIAN-CVE-2026-19445, SUSE-SU-2026:4919-1, SUSE-SU-2026:5137-1
- Record: https://cvemate.com/vulnerability/CVE-2026-19445 · JSON: https://cvemate.com/vulnerability/CVE-2026-19445/json

## Description

```text
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.
```

## Signals

- CVSS: 9.2 critical (v4.0, CVE.org) CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.675%, percentile 53.594%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 37)

- alpine python3 (Alpine Linux): \< 3.12.15-r0 \| \< 3.14.8-r0
- debian pypy3 (Debian): All versions (No fix recorded) \| \< 8.0.1+dfsg-1
- debian python3.11 (Debian): \< 3.11.2-6+deb12u9
- debian python3.13 (Debian): All versions (No fix recorded)
- debian python3.14 (Debian): \< 3.14.8-1
- debian python3.15 (Debian): \< 3.15.0~rc3-1
- ubuntu python2.7 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.10 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.11 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.12 (Ubuntu): All versions (No fix recorded) \| \< 3.12.3-1ubuntu0.18
- ubuntu python3.14 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.4 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.5 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.6 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.7 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.8 (Ubuntu): All versions (No fix recorded)
- ubuntu python3.9 (Ubuntu): All versions (No fix recorded)
- python software foundation cpython: \< 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
- redhat python3.15 (Red Hat): \< 0:3.15.0~rc2-1.1.hum1
- redhat python3.15-debug (Red Hat): \< 0:3.15.0~rc2-1.1.hum1

## References (first 20 of 30)

- <https://github.com/python/cpython/pull/158504>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/>
- <https://github.com/python/cpython/issues/156293>
- <https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d>
- <https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b>
- <https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7>
- <https://github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698>
- <https://github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c>
- <https://github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8>
- <https://github.com/python/cpython/commit/ec44b5a3258cbda947d5e07242ee562ed05ef24b>
- <http://www.openwall.com/lists/oss-security/2026/09/30/17>
- <https://security.alpinelinux.org/vuln/CVE-2026-19445>
- <https://access.redhat.com/errata/RHSA-2026:74867>
- <https://images.redhat.com/>
- <https://access.redhat.com/security/cve/CVE-2026-19445>
- <https://access.redhat.com/security/updates/classification/>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_74867.json>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2544138>
- <https://www.cve.org/CVERecord?id=CVE-2026-19445>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-19445>

---

Data as of 2026-12-05T04:44:58.039Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
