CWE•Base•Draft•18 recent CVEs
CWE-776Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Description
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.
If the DTD contains a large number of nested or recursive entities, this can lead to explosive growth of data when parsed, causing a denial of service.
Common consequences
- Availability→DoS: Resource Consumption (Other)If parsed, recursive entity references allow the attacker to expand data exponentially, quickly consuming all system resources.
Potential mitigations
- OperationIf possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
- ImplementationBefore parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-148655.32026-07-22CVE-2026-149795.32026-07-17CVE-2026-453047.52026-07-14CVE-2026-451337.52026-07-14CVE-2026-440185.52026-06-26CVE-2026-129936.52026-06-26CVE-2026-440207.52026-06-24CVE-2026-457717.52026-06-09CVE-2026-238225.32026-05-12CVE-2026-312487.52026-05-11CVE-2026-422122026-05-08CVE-2026-416737.52026-05-07CVE-2026-331167.52026-04-14CVE-2026-261717.52026-04-14CVE-2026-339087.52026-04-13CVE-2026-290747.52026-03-06CVE-2026-262787.52026-02-19CVE-2017-56445.52017-03-24