PT-2026-158990

CVE-2026-61727

·

Publicado

2026-07-20

·

Atualizado

2026-07-20

Descrição por

CVSS 3.1
7.5
Alta
MétricasAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
RUSTSEC-2026-0599
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾