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…

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 occurs when the Expat XML parser, with a registered ElementDeclHandler, processes an inline document type definition (DTD) containing a deeply nested content model, leading to a C stack overflow. This vulnerability affects CPython versions 0 through 3. 15. 0a1. No known exploits are reported in the wild, and no patch or official fix information is currently provided.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 16:01:27 UTC

Technical Analysis

This vulnerability arises from the Expat XML parser used in CPython when parsing inline DTDs with deeply nested content models while an ElementDeclHandler is registered. The deeply nested structure causes a C stack overflow, classified under CWE-674 (Improper Control of a Resource Through a Reference to a Resource in Another Sphere). The CVSS 4.0 base score is 6.0, indicating medium severity, with network attack vector, low attack complexity, and partial privileges required. The vulnerability does not involve user interaction and affects confidentiality, integrity, and availability to a high degree.

Potential Impact

Successful exploitation of this vulnerability can cause a C stack overflow, potentially leading to a denial of service by crashing the Python interpreter. The impact affects availability primarily, with high impact on confidentiality and integrity as per the CVSS vector, though no specific exploitation details are provided. There are no known active exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the Python Software Foundation's official advisories for current remediation guidance. Until a fix is available, users should avoid processing untrusted XML documents with deeply nested inline DTDs using Expat parsers with ElementDeclHandler registered. 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: 4/15/2026, 4:01:27 PM

Last updated: 4/29/2026, 10:14:59 AM

Views: 131

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