Live threats

All CVEs / Python Software Foundation

CVE-2026-19445Python Software Foundation CPython

Use-after-free in CPython SSL context replacement without reference retention

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Sep 30, 2026
Updated
Nov 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-416
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

An unauthenticated remote TLS client can crash a server or execute code through a freed pointer if the sni_callback assigns a different SSL context to SSLSocket.context without keeping a reference to the original context. It affects servers that create an SSLContext per connection or replace it while connections are open.

Show the original NVD 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.

Source text, unmodified. NVD.

What to do

Patch available

Keep a reference to every SSLContext that sets sni_callback for the lifetime of the server. Check the fix commits in the CPython repository.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for CPython.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+23), Red Hat (+14)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

On social media

1 person and 1 post on Bluesky in the last 30 days.

Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky

Official sources

References

Links published by the sources. Open them with care.