{"id":"CVE-2026-19445","published":"2026-09-30T16:16:04Z","modified":"2026-11-10T12:40:55Z","title":"Use-after-free of a server-side SSLContext when sni_callback switches contexts","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"A remote, unauthenticated TLS client can make a server crash or call\nthrough a freed pointer if its sni_callback assigns a different context to\nSSLSocket.context (the documented way to select a certificate per server\nname) and nothing else keeps the original ssl.SSLContext alive. Typical\ncases are servers that create an SSLContext per connection or replace it\nwhile connections are open; servers that wrap their listening socket with\nit are not affected.\n\n\nMitigation: keep a reference to every SSLContext that sets sni_callback for\nthe lifetime of the server. TLS clients are not affected.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00675,"percentile":0.5313,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/python/cpython/pull/158504","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/issues/156293","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ec44b5a3258cbda947d5e07242ee562ed05ef24b","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/09/30/17","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":22.1,"factors":[{"name":"EPSS percentile","points":10.63},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-02","earliestUrl":"https://github.com/abraxas/cve-2026-19445-sni-uaf","repos":[{"name":"abraxas/cve-2026-19445-sni-uaf","url":"https://github.com/abraxas/cve-2026-19445-sni-uaf","stars":0,"created":"2026-10-02"}]},"first":{"date":"2026-10-02","source":"PoC-in-GitHub","url":"https://github.com/abraxas/cve-2026-19445-sni-uaf"},"provenance":"source"},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 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"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-09T16:30:44.312598Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-90077","exploited":false,"provenance":"source"}}