oss-sec mailing list archives

[CVE-2026-4224] CPython Stack overflow parsing XML with deeply nested DTD content models


From: Alan Coopersmith <alan.coopersmith () oracle com>
Date: Mon, 16 Mar 2026 15:00:32 -0700




-------- Forwarded Message --------
Subject:        [Security-announce][CVE-2026-4224] Stack overflow parsing XML with deeply nested DTD content models
Date:   Mon, 16 Mar 2026 17:46:00 +0000
From:   Stan Ulbrych via Security-announce <security-announce () python org>
Reply-To:       security-sig () python org
To:     security-announce () python org
CC:     Stan Ulbrych <stanulbrych () gmail com>



There is a HIGH severity vulnerability
affecting CPython.

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.

Please see the linked CVE ID for the latest information on
affected versions:

* https://www.cve.org/CVERecord?id=CVE-2026-4224
* https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768


Current thread: