CVE-2026-4224: Stack overflow parsing XML with deeply nested DTD content models

Published Mar 16, 2026
·
Updated

Last updated 6 July 2026

Other sources

Stack overflow parsing XML with deeply nested DTD content models

Microsoft

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.

MITRE

Affected Software

19 affected componentsFixes available
Python CPython
Microsoft cbl2 python3 3.9.19-19
Python Python<3.10.0
Python Python>=3.13.0<3.13.13
Python Python>=3.14.0<3.14.4
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
Python Python=3.15.0-alpha3
Python Python=3.15.0-alpha4
Python Python=3.15.0-alpha5
Python Python=3.15.0-alpha6
Python Python=3.15.0-alpha7
Microsoft cbl2 python3 3.9.19-19<3.9.19-21
3.9.19-21
debian/pypy3
7.3.5+dfsg-2+deb11u27.3.5+dfsg-2+deb11u57.3.11+dfsg-2+deb12u37.3.19+dfsg-27.3.23+dfsg-1
debian/python2.7<=2.7.18-8+deb11u1
debian/python3.11<=3.11.2-6+deb12u7, <=3.11.2-6+deb12u3
debian/python3.13
3.13.5-2+deb13u23.13.14-1
debian/python3.14
3.14.6-1
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.9.19-21
  2. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.5+dfsg-2+deb11u2Fixed in 7.3.5+dfsg-2+deb11u5Fixed in 7.3.11+dfsg-2+deb12u3Fixed in 7.3.19+dfsg-2Fixed in 7.3.23+dfsg-1
  3. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u2Fixed in 3.13.14-1
  4. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.6-1
  5. Upgrade

    Upgrade debian/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.2-1+deb11u7
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2026-4224

Event History

Mar 16, 2026
CVE Published
via MITRE·05:52 PM
Data Sourced
via MITRE·05:52 PM
Description
Data Sourced
via NVD·06:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·07:02 PM
DescriptionSeverityAffected Software
Mar 19, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:04 AM
DescriptionSeverity
Updated
via Microsoft·08:04 AM
DescriptionSeverityWeakness
Jul 6, 2026
Data Sourced
via Launchpad·01:33 PM
Description
Data Sourced
via Debian·01:33 PM
DescriptionAffected Software
Jul 7, 2026
Data Sourced
via Ubuntu·01:34 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4224?

CVE-2026-4224 has a high severity due to its potential to cause a stack overflow in applications using the Expat parser.

2

How do I fix CVE-2026-4224?

To fix CVE-2026-4224, you should upgrade to the latest version of Python CPython that includes the patch addressing this vulnerability.

3

What causes CVE-2026-4224?

CVE-2026-4224 is caused by a stack overflow that occurs when an Expat parser processes an inline document type definition with deeply nested content models.

4

Which versions of Python CPython are affected by CVE-2026-4224?

CVE-2026-4224 affects versions of Python CPython that utilize the Expat parser without the necessary safeguards against deep nesting in DTD content models.

5

Is CVE-2026-4224 exploitable remotely?

Yes, CVE-2026-4224 is remotely exploitable if an attacker can craft a malicious XML document that triggers the stack overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203