CVE-2026-19445Python CPython use-after-free
CVSS score
9.2
Critical
CVSS 4.0 from python.org
Exploit probability (EPSS)
0.68%
0.68% chance of exploitation in the next 30 days, higher than 53.2% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
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.
Source: NVD · CNA: cna@python.org
How to fix it, step by step
Check whether you're affected
Find every system running Python 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) and compare its version with the affected versions.
Update to a fixed version
- Update CPython to 3.10.22, 3.11.17, 3.12.15, 3.13.16 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Attack requirements
- Present
- Privileges required
- None
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- Low
Values in red make the vulnerability easier to exploit or more damaging. 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
Affected products
| Affected products | Versions |
|---|---|
| Python 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 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) | V3.1.7 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) | V3.1.7 |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) | V3.1.7 |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) | V3.1.7 |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) | V3.1.7 |
Weakness
- CWE-416 use-after-free
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-19445 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.7% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-19445?
CVE-2026-19445 has a CVSS 4.0 base score of 9.2 (critical).
Which versions are affected?
Python 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), Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) (V3.1.7), Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) (V3.1.7), Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) (V3.1.7), Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) (V3.1.7), Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) (V3.1.7)
Is there a patch for CVE-2026-19445?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d
- github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b
- github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7
- github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8
- github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698
- github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c
- github.com/python/cpython/commit/ec44b5a3258cbda947d5e07242ee562ed05ef24b
- github.com/python/cpython/issues/156293
- github.com/python/cpython/pull/158504
- mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/
- www.openwall.com/lists/oss-security/2026/09/30/17
- cert-portal.siemens.com/productcert/html/ssa-457936.html
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.