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
Follow: this CVE · Python Software Foundation · Python Software Foundation CPython We alert you by email or Slack (account required).
- 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.
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.
- Apply the vendor's security update for CPython.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Python Software Foundation · CPython
- Siemens · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
- Siemens · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
- Siemens · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
- Siemens · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
- Siemens · SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for python39 · SUSE · SUSE-SU-2026:5495-1 · Nov 27, 2026 Critical
- Security update for python3, python313 · SUSE · SUSE-SU-2026:24974-1 · Nov 25, 2026 Critical
- Red Hat Security Advisory: python3.12 security update · Red Hat · RHSA-2026:102859 · Nov 25, 2026 High
- Red Hat Security Advisory: python3.12 security update · Red Hat · RHSA-2026:102850 · Nov 25, 2026 High
- Security update for Multi-Linux Manager Client Tools and Salt Bundle · SUSE · SUSE-SU-2026:5446-1 · Nov 25, 2026 Critical
- Red Hat Security Advisory: python3.9 security update · Red Hat · RHSA-2026:100645 · Nov 23, 2026 High
- Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.7 · Siemens · SSA-457936 · Oct 13, 2026 Critical
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.