Vulnerability · Published Sep 30, 2026 · Assigned by PSF

CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts

Critical 9.2

In plain English

A critical-severity use-after-free in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)9.2Critical
Exploit odds (30 days)0.5%top 55.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8platform-python3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:8platform-python-debug3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:8platform-python-devel3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:10python-unversioned-command3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:9python-unversioned-command3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python33.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:9python33.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-debug3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:9python3-debug3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-devel3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:9python3-devel3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-idle3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:8python3-idle3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:9python3-idle3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-libs3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:8python3-libs3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:9python3-libs3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-test3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:8python3-test3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:9python3-test3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:10python3-tkinter3.12.15-1.el10_2ALSA-2026:77020
AlmaLinux:8python3-tkinter3.6.8-79.el8_10.alma.1ALSA-2026:85239
AlmaLinux:9python3-tkinter3.9.25-7.el9_8.6ALSA-2026:89742
AlmaLinux:8python3.123.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.123.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-debug3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-debug3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-devel3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-devel3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-idle3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-idle3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-libs3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-libs3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-rpm-macros3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:8python3.12-test3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-test3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:8python3.12-tkinter3.12.15-2.el8_10ALSA-2026:77028
AlmaLinux:9python3.12-tkinter3.12.15-1.el9_8ALSA-2026:77017
AlmaLinux:10python3.143.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.143.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-debug3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-debug3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-devel3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-devel3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-debug3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-debug3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-devel3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-devel3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-idle3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-idle3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-libs3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-libs3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-test3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-test3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-freethreading-tkinter3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-freethreading-tkinter3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-idle3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-idle3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-libs3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-libs3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-test3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-test3.14.8-1.el9_8ALSA-2026:77021
AlmaLinux:10python3.14-tkinter3.14.8-1.el10_2ALSA-2026:77018
AlmaLinux:9python3.14-tkinter3.14.8-1.el9_8ALSA-2026:77021
Alpine:v3.21python33.12.15-r0ALPINE-CVE-2026-19445
Alpine:v3.22python33.12.15-r0ALPINE-CVE-2026-19445
Alpine:v3.23python33.12.15-r0ALPINE-CVE-2026-19445
Alpine:v3.24python33.14.8-r0ALPINE-CVE-2026-19445
Debian:12pypy3no fix listedDEBIAN-CVE-2026-19445
Debian:13pypy3no fix listedDEBIAN-CVE-2026-19445
Debian:14pypy38.0.1+dfsg-1DEBIAN-CVE-2026-19445
Debian:12python3.113.11.2-6+deb12u9DEBIAN-CVE-2026-19445
Debian:13python3.13no fix listedDEBIAN-CVE-2026-19445
Debian:14python3.143.14.8-1DEBIAN-CVE-2026-19445
Debian:14python3.153.15.0~rc3-1DEBIAN-CVE-2026-19445
Rocky Linux:8python30:3.6.8-79.el8_10.rocky.0RLSA-2026:85239
Rocky Linux:10python3.120:3.12.15-1.el10_2RLSA-2026:77020
Rocky Linux:8python3.120:3.12.15-2.el8_10RLSA-2026:77028
Rocky Linux:9python3.120:3.12.15-1.el9_8RLSA-2026:77017
Rocky Linux:10python3.140:3.14.8-1.el10_2RLSA-2026:77018
Rocky Linux:9python3.140:3.14.8-1.el9_8RLSA-2026:77021
Rocky Linux:9python3.90:3.9.25-7.el9_8.6RLSA-2026:89742
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-19445
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-19445
Ubuntu:26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-19445
Ubuntu:26.10python3.14no fix listedUBUNTU-CVE-2026-19445

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.223.11.0 – before 3.11.173.12.0 – before 3.12.153.13.0 – before 3.13.163.14.0 – before 3.14.83.15.0a1 – before 3.15.0rc3

Weakness: CWE-416 · 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

References