← Vulnerability feed

Vulnerability record · CVE-2013-0340 · published 21 January 2014

CVE-2013-0340: Libexpat project libexpat xml external entity (xxe) vulnerability

LLibexpat Project · Libexpat

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.

6.8 CVSS 2.0 Medium EPSS 19% · top 2.7% CWE-611 · XML external entity (XXE)
6.8CVSS 2.0 base score
19%EPSS exploitation probability, 30 days
NoNot in CISA KEV
7Affected product versions listed by NVD
49References, 2 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected products

7 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://openwall.com/lists/oss-security/2013/02/22/3 ExploitMailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/61 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/62 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/63 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/34 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/38 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/39 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/40 Mailing ListThird Party Advisory
http://securitytracker.com/id?1028213 Third Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2013/04/12/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/4 Mailing ListThird Party Advisory
http://www.osvdb.org/90634 Broken Link
http://www.securityfocus.com/bid/58233 Broken LinkThird Party AdvisoryVDB Entry
https://github.com/libexpat/libexpat/blob/R_2_4_1/expat/Changes
https://lists.apache.org/thread.html/r41eca5f4f09e74436cbb05dec450fc2bef37b5d3e966aa7cc5fada6d%40%3Cannounce.apache.org%
https://lists.apache.org/thread.html/rfb2c193360436e230b85547e85a41bea0916916f96c501f5b6fc4702%40%3Cusers.openoffice.apa
https://security.gentoo.org/glsa/201701-21 Third Party Advisory
https://support.apple.com/kb/HT212804 Third Party Advisory
https://support.apple.com/kb/HT212805 Third Party Advisory
https://support.apple.com/kb/HT212807 Third Party Advisory
https://support.apple.com/kb/HT212814 Third Party Advisory
https://support.apple.com/kb/HT212815 Third Party Advisory
https://support.apple.com/kb/HT212819 Third Party Advisory
http://openwall.com/lists/oss-security/2013/02/22/3 ExploitMailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/61 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/62 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/63 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/34 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/38 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/39 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/40 Mailing ListThird Party Advisory
http://securitytracker.com/id?1028213 Third Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2013/04/12/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/4 Mailing ListThird Party Advisory
http://www.osvdb.org/90634 Broken Link
http://www.securityfocus.com/bid/58233 Broken LinkThird Party AdvisoryVDB Entry

Track CVE-2013-0340 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2025-31200Apple OS media parsing memory corruption allows code executionA memory corruption flaw in Apple's audio stream processing was fixed with improved bounds checking across iOS, iPadOS, macOS, tvOS, visionOS and wat…KEVEPSS 19%analysed9.8CVE-2025-31201Apple OS Pointer Authentication bypass via arbitrary read/writeApple removed vulnerable code that allowed an attacker holding arbitrary read and write capability to bypass Pointer Authentication across iOS, iPadO…KEVEPSS 14%analysed9.8CVE-2022-22587Apple iOS, iPadOS and macOS kernel memory corruption via out-of-bounds writeAn out-of-bounds write (CWE-787) in Apple iOS, iPadOS and macOS is caused by insufficient input validation and can corrupt memory. Apple states it is…KEVEPSS 12%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed

Source: NIST National Vulnerability Database (record CVE-2013-0340), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.