Skip to main content

CVE-2026-19445: CWE-416 in Python Software Foundation CPython

0
Critical
VulnerabilityCVE-2026-19445cvecve-2026-19445cwe-416
Published: 09/30/2026 (09/30/2026, 16:16:04 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

CVE-2026-19445 is a critical use-after-free vulnerability (CWE-416) in CPython's SSL handling. A remote, unauthenticated TLS client can cause a server crash or execute code through a freed pointer if the server's sni_callback assigns a different SSLContext to SSLSocket.context and the original SSLContext is not kept alive. This typically affects servers that create or replace SSLContext objects per connection. TLS clients are not impacted by this vulnerability.

CVSS v4.0

Score 9.2critical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Python Software Foundation

CPython

Affected versions
>=0 <3.16.0
GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
>=0 <3.16.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/30/2026, 17:03:12 UTC

Technical Analysis

This vulnerability arises when a server using CPython's SSL module assigns a new SSLContext in the sni_callback without maintaining a reference to the original SSLContext. If the original SSLContext is freed while still in use, a remote TLS client can trigger a crash or use-after-free condition. Servers that create or replace SSLContext objects per connection are vulnerable, whereas those wrapping their listening socket with a persistent SSLContext are not affected.

Potential Impact

A remote, unauthenticated attacker can cause a denial of service by crashing the server or potentially execute code through use-after-free of SSLContext objects. The vulnerability does not affect TLS clients.

Mitigation Recommendations

Keep a reference to every SSLContext that sets sni_callback for the lifetime of the server to prevent the original SSLContext from being freed prematurely. This mitigation is effective and no official patch is indicated in the provided data. TLS clients require no action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-08-10T13:31:21.724Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abd3d882a4e24523d41fc81

Added to database: 09/30/2026, 16:49:12 UTC

Last enriched: 09/30/2026, 17:03:12 UTC

Last updated: 09/30/2026, 17:03:12 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses