CyberSecBulletin

Improper Restriction of Recursive Entity References in DTDs

CWE-776

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

We track 35 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.8.

How this weakness is prevented

  • Operation: If possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
  • Implementation: Before parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.

Latest Improper Restriction of Recursive Entity References in DTDs vulnerabilities