CVE-2013-0340

Exp

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.

Published: 2014-01-21 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2013-0340 is rated High Exploit Risk (81.2/100): CVSS Medium severity, with high exploitation likelihood (EPSS 19.43%, 97th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +19.38% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2013-0340

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2013-0340

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.05% 19.43% +19.38%
2 2026-01-04 0.04% 0.05% +0.01%
3 2026-01-01 0.04%

Full EPSS history (12 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2013-0340

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2013-0340

OS Trackers for CVE-2013-0340

vendor priority summary link
debian unimportant CVE-2013-0340 unimportant priority: Debian including 2 source packages (expat, libxmltok), 7 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 3. https://security-tracker.debian.org/tracker/CVE-2013-0340
gentoo normal CVE-2013-0340: 1 GLSA(s) (201701-21), 1 atom(s) (dev-libs/expat); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2013-0340
redhat medium https://access.redhat.com/security/cve/CVE-2013-0340
suse medium CVE-2013-0340 severity moderate: SUSE including 276 source package names (13.2-9.1:libexpat1-2.7.1-slfo.1.1_1.1, 2.1.3-6.18:libexpat1-2.7.1-slfo.1.1_1.1, …), 310 product×package rows across 48 product lines (Container suse/sl-micro/6.0/baremetal-os-container, Container suse/sl-micro/6.0/base-os-container, … (48 product lines)): Known Affected 231, Fixed 79. https://www.suse.com/security/cve/CVE-2013-0340/
ubuntu medium CVE-2013-0340 medium priority: Ubuntu including 40 source packages (apache2, apr-util, …), 280 status rows across 7 suites (hardy, lucid, oneiric, precise, quantal, raring, upstream): ignored 224, DNE 55, released 1. https://ubuntu.com/security/CVE-2013-0340

Affected software / configurations for CVE-2013-0340

Vendor Product Version Raw CPE
libexpat_project libexpat < 2.4.0 cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
python python >= 3.6.0, < 3.6.15 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.7.0, < 3.7.12 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.8.0, < 3.8.12 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
python python >= 3.9.0, < 3.9.7 cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
apple ipados < 14.8 cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:*
apple iphone_os < 14.8 cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*
apple macos < 11.6 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple tvos < 15.0 cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:*
apple watchos < 8.0 cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:*

References for CVE-2013-0340

URL Tags
http://openwall.com/lists/oss-security/2013/02/22/3 Exploit Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/61 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/62 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Oct/63 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/33 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/34 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/35 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/38 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/39 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2021/Sep/40 Mailing List Third Party Advisory
http://securitytracker.com/id?1028213 Third Party Advisory VDB Entry
http://www.openwall.com/lists/oss-security/2013/04/12/6 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/4 Mailing List Third Party Advisory
http://www.osvdb.org/90634 Broken Link
http://www.securityfocus.com/bid/58233 Broken Link Third Party Advisory VDB Entry
https://github.com/libexpat/libexpat/blob/R_2_4_1/expat/Changes
https://lists.apache.org/thread.html/r41eca5f4f09e74436cbb05dec450fc2bef37b5d3e966aa7cc5fada6d%40%3Cannounce.apache.org%3E
https://lists.apache.org/thread.html/rfb2c193360436e230b85547e85a41bea0916916f96c501f5b6fc4702%40%3Cusers.openoffice.apache.org%3E
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
cvelogic Threat Intelligence