CVE-2013-0340

Executive Summary

Expat before 2.4.0 fails to properly handle entity expansion, allowing XML External Entity (XXE) attacks that can cause denial‑of‑service, send unauthorized HTTP requests to internal servers, or read arbitrary files. Mitigation requires disabling external entities or upgrading to 2.4.0+. Responsibility partly lies with application developers who must enforce safe XML parsing.


Authoritative CVE Metadata

  • CVSS Base Score: 6.8 (MEDIUM)
  • Last Modified: 14-10-26

Original Description

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler function, which allows remote attackers to cause a denial of service (resource consumption), send HTTP requests to intranet servers, or read arbitrary files via a crafted XML document, aka an XML External Entity (XXE) issue. NOTE: it could be argued that because expat already provides the ability to disable external entity expansion, the responsibility for resolving this issue lies with application developers; according to this argument, this entry should be REJECTed, and each affected application would need its own CVE.