BaseDraft

CWE-611Improper Restriction of XML External Entity Reference

Category: other

Description

The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

Common consequences· 3

  • Confidentiality — Read Application Data, Read Files or Directories
    If the attacker is able to include a crafted DTD and a default entity resolver is enabled, the attacker may be able to access arbitrary files on the system. By submitting an XML file that defines an external entity with a file:// URI, an attacker can cause the processing application to read the contents of a local file. For example, a URI such as "file:///c:/winnt/win.ini" designates (in Windows) the file C:\Winnt\win.ini, or file:///etc/passwd designates the password file in Unix-based systems. Once the content of the URI is read, it is fed back into the application that is processing the XML. This application may echo back the data (e.g., in an error message), thereby exposing the file contents.
  • Integrity — Bypass Protection Mechanism
    An attacker may supply a crafted DTD using URIs with schemes such as http://, forcing the application to make outgoing HTTP requests to servers that the attacker cannot reach directly, which can be used to bypass firewall restrictions; hide the source of attacks such as port scanning; or otherwise leverage the server's trust relationship with other entities.
  • Availability — DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
    The product could consume excessive CPU cycles or memory using a URI that points to a large file, or a device that always returns data such as /dev/random. Alternately, the URI could reference a file that contains many nested or recursive entity references to further slow down parsing.

Potential mitigations· 1

  • [Implementation, System Configuration]Many XML parsers and validators can be configured to disable external entity expansion.

Related CAPEC attack patterns· 1

CAPEC-221

References

  1. https://cwe.mitre.org/data/definitions/611.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternData Serialization External Entities Blowupcapec-221100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControlpci_dss_v4-r6100%live

(incoming)57

TypeTargetConfidenceTier
VulnerabilityCVE-2025-10091cve-2025-100910%live
VulnerabilityCVE-2025-10092cve-2025-100920%live
VulnerabilityCVE-2025-10183cve-2025-101830%live
VulnerabilityCVE-2025-10713cve-2025-107130%live
VulnerabilityCVE-2025-10816cve-2025-108160%live
VulnerabilityCVE-2025-11035cve-2025-110350%live
VulnerabilityCVE-2025-11140cve-2025-111400%live
VulnerabilityCVE-2025-11341cve-2025-113410%live
VulnerabilityCVE-2025-12531cve-2025-125310%live
VulnerabilityCVE-2025-14543cve-2025-145430%live
VulnerabilityCVE-2025-22478cve-2025-224780%live
VulnerabilityCVE-2025-27523cve-2025-275230%live
VulnerabilitySysAid On-Prem Improper Restriction of XML External Entity Reference Vulnerabilitycve-2025-27750%live
VulnerabilitySysAid On-Prem Improper Restriction of XML External Entity Reference Vulnerabilitycve-2025-27760%live
VulnerabilityCVE-2025-2777cve-2025-27770%live
VulnerabilityCVE-2025-2905cve-2025-29050%live
VulnerabilityCVE-2025-30220cve-2025-302200%live
VulnerabilityCVE-2025-31039cve-2025-310390%live
VulnerabilityCVE-2025-32406cve-2025-324060%live
VulnerabilityCVE-2025-3241cve-2025-32410%live
VulnerabilityCVE-2025-36049cve-2025-360490%live
VulnerabilityCVE-2025-36247cve-2025-362470%live
VulnerabilityCVE-2025-4044cve-2025-40440%live
VulnerabilityCVE-2025-46726cve-2025-467260%live
VulnerabilityCVE-2025-48006cve-2025-480060%live
VulnerabilityCVE-2025-49535cve-2025-495350%live
VulnerabilityCVE-2025-53689cve-2025-536890%live
VulnerabilityCVE-2025-54254cve-2025-542540%live
VulnerabilityCVE-2025-54445cve-2025-544450%live
VulnerabilityCVE-2025-54988cve-2025-549880%live

Showing top 30 of 57 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Control of Document Type Definition
CWE
Improper Handling of Invalid Use of Special Elements
CWE
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
CWE
Improper Handling of Syntactically Invalid Structure
CWE
Failure to Handle Incomplete Element
CWE
Incomplete Filtering of One or More Instances of Special Elements
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.