Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 74%

CVE-2026-4224: Vulnerability in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-4224cvecve-2026-4224
Published: Mon Mar 16 2026 (03/16/2026, 17:52:26 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

CVE-2026-4224 is a medium severity vulnerability in the Python Software Foundation's CPython implementation. It arises when the Expat XML parser, configured with a registered ElementDeclHandler, processes an inline DTD containing a deeply nested content model, causing a C stack overflow. This affects CPython versions from 0 up to 3.15.0a1. No known exploits have been reported in the wild. Currently, there is no patch or official fix available for this vulnerability.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

Affected versions
=0=3.14.0=3.15.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/03/2026, 21:16:06 UTC

Technical Analysis

This vulnerability in CPython involves the Expat XML parser's handling of inline DTDs with deeply nested content models when an ElementDeclHandler is registered. The deeply nested structure leads to a C stack overflow, potentially causing a denial of service or crash. It affects CPython versions 0 through 3.15.0a1. The CVSS 4.0 base score is 6.0, indicating medium severity. No exploits are known, and no remediation or patch has been published by the Python Software Foundation as of the publication date.

Potential Impact

The vulnerability can cause a C stack overflow in the Expat XML parser within CPython, potentially leading to application crashes or denial of service. There is no evidence of exploitation in the wild. The impact is limited to affected CPython versions when processing maliciously crafted XML with deeply nested DTD content models and a registered ElementDeclHandler.

Mitigation Recommendations

Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a patch or official fix is released, users should consider avoiding processing untrusted XML documents with deeply nested DTDs using CPython versions up to 3.15.0a1. Monitor official Python channels for updates.

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-03-15T18:10:54.886Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69b84a02771bdb174918693d

Added to database: 3/16/2026, 6:20:50 PM

Last enriched: 6/3/2026, 9:16:06 PM

Last updated: 6/15/2026, 10:21:49 AM

Views: 204

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