Skip to main content
VulnerabilityPublished Updated

CVE-2026-61727: Xmloxide · Stack overflow from unbounded recursion in DTD content-model parsing

Affects xmloxideSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 0.4.4 soon.

Data as of 24 Nov 2026, 22:11 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.4.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 24 Nov 2026.

What to do

Upgrade xmloxide to 0.4.4.

Affected software

ProductAffectedFixed in
crates.ioxmloxidepkg:cargo/xmloxideOther threatsAffected
  • >=0.0.0-0 <0.4.4
Fixed in
  • 0.4.4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

`xmloxide`'s DTD parser recursed without a depth bound when parsing the parenthesised content model of an `<!ELEMENT>` declaration. A small document whose internal DTD subset contains many nested `(` drives unbounded mutual recursion between `DtdParser::parse_content_particle` and `DtdParser::parse_content_spec_group`, exhausting the stack and aborting the process. The internal DTD subset is parsed during ordinary document parsing, so this is reachable through the default parse entry points (for example `Document::parse_str`) on any input that carries a `DOCTYPE`. The existing `ParseOptions::max_depth` limit does not prevent it: it bounds element nesting, not DTD content-model nesting. A stack overflow cannot be caught as an error, so any process that parses attacker-controlled XML with `xmloxide` can be crashed with a small payload. Fixed in 0.4.4: a parenthesis-nesting depth counter is threaded through the content-model parser, and nesting deeper than 256 levels is rejected with a normal `ParseError`. Well-formed DTDs are unaffected. Applications that cannot upgrade should reject or strip the `DOCTYPE` from untrusted input before parsing.

References

Community reviews

Loading reviews…