CWE•Base•Draft•20 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-920016.12026-09-23CVE-2026-540777.12026-09-15CVE-2023-460355.92026-09-14CVE-2026-582342.22026-09-08CVE-2026-161805.72026-09-04CVE-2026-786817.52026-08-25CVE-2026-735692026-08-13CVE-2026-34158.72026-08-06CVE-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-07