CWEweakness

CWE-611 Improper Restriction of XML External Entity Reference

Official page ↗
Alternate terms
XXE
Abstraction
Base
Structure
Simple
Status
Draft
Languages
Not Language-Specific, XML
CWE version
5.0

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

• 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

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

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• 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. • CVE-2009-1699: XXE in XSL stylesheet functionality in a common library used by some web browsers.

Related

Attack pattern · CAPEC (1)

  • CAPEC-221 Data Serialization External Entities Blowup attack pattern

Observed example · CVE (11)

  • CVE-2022-42745 CandidATS version 3.0.0 allows an external attacker to read arbitrary files from the server. vulnerability
  • CVE-2012-3363 Zend_XmlRpc in Zend Framework 1.x before 1.11.12 and 1.12.x before 1.12.0 does not properly handle SimpleXMLElement classes, which allows… vulnerability
  • CVE-2012-5656 The rasterization process in Inkscape before 0.48.4 allows local users to read arbitrary files via an external entity in a SVG file, aka an… vulnerability
  • CVE-2012-2239 Mahara 1.4.x before 1.4.4 and 1.5.x before 1.5.3 allows remote attackers to read arbitrary files or create TCP connections via an XML… vulnerability
  • CVE-2012-4399 The Xml class in CakePHP 2.1.x before 2.1.5 and 2.2.x before 2.2.1 allows remote attackers to read arbitrary files via XML data containing… vulnerability
  • CVE-2012-3489 The xml_parse function in the libxml2 support in the core server component in PostgreSQL 8.3 before 8.3.20, 8.4 before 8.4.13, 9.0 before… vulnerability
  • CVE-2012-0037 Redland Raptor (aka libraptor) before 2.0.7, as used by OpenOffice 3.3 and 3.4 Beta, LibreOffice before 3.4.6 and 3.5.x before 3.5.1, and… vulnerability
  • CVE-2011-4107 The simplexml_load_string function in the XML import plug-in (libraries/import/xml.php) in phpMyAdmin 3.4.x before 3.4.7.1 and 3.3.x before… vulnerability
  • CVE-2010-3322 The XML parser in Splunk 4.0.0 through 4.1.4 allows remote authenticated users to obtain sensitive information and gain privileges via an… vulnerability
  • CVE-2009-1699 The XSL stylesheet implementation in WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1… vulnerability
  • CVE-2005-1306 The Adobe Reader control in Adobe Reader and Acrobat 7.0 and 7.0.1 allows remote attackers to determine the existence of files via… vulnerability

Child of · CWE (1)

  • CWE-610 Externally Controlled Reference to a Resource in Another Sphere weakness

Peer of · CWE (1)

  • CWE-441 Unintended Proxy or Intermediary weakness

Referenced by CAPEC · weakness (1)

  • CAPEC-221 Data Serialization External Entities Blowup attack pattern

Referenced by CVE · weakness (1,366)

  • CVE-2026-66089 In openEQUELLA before 2026.1, the SOAP API parses XML supplied in the stopEdit operation with a parser that resolves external entities. vulnerability
  • CVE-2026-66090 In openEQUELLA before 2026.1, the XML parser used for item metadata does not disable external entity resolution. vulnerability
  • CVE-2026-93570 Szafir and Szafir Weryfikująca are vulnerable to XML External Entity (XXE) injection. vulnerability
  • CVE-2026-112198 XML External Entity (XXE) injection vulnerability in the SAFT import feature of the NoviGest Desktop App. vulnerability
  • CVE-2026-118039 In Progress® Telerik® Document Processing Libraries prior to version 2026.3.1027, an XML external entity reference vulnerability in SVG… vulnerability
  • CVE-2026-90885 Improper Restriction of XML External Entity Reference vulnerability in Apache Camel Saxon component. vulnerability
  • CVE-2026-54668 Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite. vulnerability
  • CVE-2026-108357 PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. vulnerability
  • CVE-2026-108358 PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. vulnerability
  • CVE-2026-113582 UNSUPPORTED WHEN ASSIGNED Improper restriction of XML external entity references in Apache Abdera allows an attacker to access sensitive… vulnerability
  • CVE-2026-97400 In Eclipse OpenJ9 versions up to 0.63, opening a supplied diagnostic dump bundle with the jdmpview tool, or equivalent DTFJ code, may cause… vulnerability
  • CVE-2026-104679 VOCALOID6 Editor provided by Yamaha Corporation improperly restricts XML external entity references. vulnerability
  • CVE-2026-85250 Improper Restriction of XML External Entity Reference vulnerability in Apache Camel XPath component. vulnerability
  • CVE-2026-88901 Improper Restriction of XML External Entity Reference vulnerability in Apache Camel. vulnerability
  • CVE-2026-91858 FopProducer transforms the incoming XSL-FO message body by creating a javax.xml.transform.TransformerFactory through… vulnerability
  • CVE-2026-109430 Ellucian WebAdvisor 3.2 contains an unauthenticated XML External Entity (XXE) injection vulnerability that allows remote attackers to… vulnerability
  • CVE-2026-88794 Enterprise Architect is vulnerable to XML External Entity (XXE) injection in the XSLT Debugger feature. vulnerability
  • CVE-2026-106616 ColdFusion is affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability that could lead to arbitrary file… vulnerability
  • CVE-2026-54640 OpenRemote is an open-source internet-of-things platform. vulnerability
  • CVE-2026-77090 CVFS contained an XML external entity (XXE) reference handling issue affecting information dislcosure. vulnerability
  • CVE-2026-90531 Adobe Experience Manager is affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability that could result in… vulnerability
  • CVE-2026-85957 Affected Progress MarkLogic Server 11.x releases before 11.3.7 use a SAML parser configuration that can process external DTDs or entities,… vulnerability
  • CVE-2026-85970 Progress MarkLogic Server 12.x releases before 12.1.0 and 11.x releases before 11.3.7 enable XML external entity processing by default in… vulnerability
  • CVE-2026-92877 The JAXB factory methods historically relied solely on `FEATURE_SECURE_PROCESSING` to prevent XML External Entity (XXE) resolution. vulnerability
  • CVE-2026-93891 IBM TRIRIGA Application Platform 5.0.0 through 5.0.8 could allow a remote authenticated attacker to obtain sensitive information due to an… vulnerability
  • CVE-2026-14905 IBM DataPower Gateway 10.5.0.0 through 10.5.0.22, 10.6.1 through 10.6.6, 10.6.0.0 through 10.6.0.10, and 11.0.0.0 through 11.0.0.2 is… vulnerability
  • CVE-2026-102155 An XML External Entity (XXE) injection vulnerability in the WiFi-server Spectralight application allows any authenticated user to send… vulnerability
  • CVE-2026-101893 Newell Brands DYMO ID 1.5.1.71 parses job files using XmlDocument.Load() without disabling DTD processing. vulnerability
  • CVE-2026-88789 Improper Restriction of XML External Entity Reference in the XSLT support extension (camel-quarkus-support-xalan) in Apache Camel Quarkus… vulnerability
  • CVE-2026-102127 An XML parser used by Kiteworks Email Protection Gateway did not restrict external entity references. vulnerability
Show all 1,366 ›

Referenced by CWE · has member (5)

  • CWE-1200 Weaknesses in the 2019 CWE Top 25 Most Dangerous Software Errors view
  • CWE-1337 Weaknesses in the 2021 CWE Top 25 Most Dangerous Software Weaknesses view
  • CWE-1340 CISQ Data Protection Measures view
  • CWE-1350 Weaknesses in the 2020 CWE Top 25 Most Dangerous Software Weaknesses view
  • CWE-1387 Weaknesses in the 2022 CWE Top 25 Most Dangerous Software Weaknesses view

Referenced by OWASP · mapped cwe (3)