Python2.7: When an Expat parser with a registered ElementDeclHandler parses an inline document type definition
Affects python2.7Source GCVE Database
Not known to be exploited · CVSS 6.0 Medium · fixed in 2.7.6-8ubuntu0.6+esm30 : update python2.7 when convenient.
Data as of 24 Nov 2026, 20:12 UTC
- Patch
- Available – fixed in 2.7.6-8ubuntu0.6+esm30, 3.4.3-1ubuntu1~14.04.7+esm21, 3.5.2-2ubuntu0~16.04.4~14.04.1+esm11 +12
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10pypy3pkg:deb/ubuntu/pypy3?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpypy3pkg:deb/ubuntu/pypy3?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-4224 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-4224 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/ (opens in a new tab)
- github.com/python/cpython/pull/145987 (opens in a new tab)
- ubuntu.com/security/notices/USN-8509-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8744-1 (opens in a new tab)