BIT-libpython-2026-4224: Stack overflow parsing XML with deeply nested DTD content models
Published Mar 16, 2026
·Updated
When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content model a C stack overflow occurs.
Affected Software
1 affected component
Expat Expat
Event History
Mar 16, 2026
CVE Published
via OSV·05:52 PM
Data Sourced
via OSV·05:52 PM
DescriptionSeverity
Frequently Asked Questions
1
What conditions are required to trigger the stack overflow?
The parser must have an ElementDeclHandler registered and must parse an inline document type definition containing a deeply nested content model. The issue is reachable over the network, requires low attack complexity, and requires low privileges; no user interaction is required.
2
What is the expected impact if exploitation succeeds?
The reported impact is loss of availability. The vulnerability does not report impact to confidentiality or integrity.