CWE Database
/

CWE-611

Back to CWE list

CWE-611

Improper Restriction of XML External Entity Reference

Base
Draft

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.

Related Weaknesses

Common Consequences

Scope

Confidentiality

Impact

Read Application Data, Read Files or Directories

Scope

Integrity

Impact

Bypass Protection Mechanism

Scope

Availability

Impact

DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)

Potential Mitigations

Implementation
System Configuration

Many XML parsers and validators can be configured to disable external entity expansion.

CVE-2022-42745

Recruiter software allows reading arbitrary files using XXE

CVE-2005-1306

A browser control can allow remote attackers to determine the existence of files via Javascript containing XML script.

CVE-2012-5656

XXE during SVG image conversion

CVE-2012-2239

XXE in PHP application allows reading the application's configuration file.

CVE-2012-3489

XXE in database server

CVE-2012-4399

XXE in rapid web application development framework allows reading arbitrary files.

CVE-2012-3363

XXE via XML-RPC request.

CVE-2012-0037

XXE in office document product using RDF.

CVE-2011-4107

XXE in web-based administration tool for database.

CVE-2010-3322

XXE in product that performs large-scale data analysis.

+1 more examples

Applicable Platforms

Not Language-Specific
XML

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now