CWE•Base•Draft•20 recent CVEs
CWE-776Improper Restriction of Recursive Entity References in DTDs
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.
Common consequences
- Availability→DoS: Resource Consumption (Other)If the DTD contains a large number of nested or recursive entities, this allows the attacker to expand data exponentially when the DTD is parsed, 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-1322757.52026-11-20CVE-2026-1059252026-11-16CVE-2026-1240382.32026-11-10CVE-2026-1240787.52026-11-06CVE-2026-1197247.52026-11-03CVE-2026-1155067.52026-10-22CVE-2026-1083582026-10-22CVE-2026-1083572026-10-22CVE-2026-1080867.52026-10-20CVE-2026-1112526.52026-10-15CVE-2026-740304.92026-10-13CVE-2026-1080397.52026-10-09CVE-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-06