CVE-2013-0340

CVE-2013-0340 is a medium-severity vulnerability in Libexpat Project Libexpat with a CVSS 2.0 base score of 6.8. Its EPSS exploit-prediction score of 19% places it in the 97th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-611.

Key facts

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.

Frequently asked questions

What is CVE-2013-0340?
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.
How severe is CVE-2013-0340?
CVE-2013-0340 has a CVSS 2.0 base score of 6.8, rated medium severity.
Is CVE-2013-0340 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 19% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2013-0340?
CVE-2013-0340 primarily affects Libexpat Project Libexpat. In total, 7 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2013-0340?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2013-0340 published?
CVE-2013-0340 was published on 2014-01-21 and last updated on 2026-06-16.

References

Affected products (7)

More vulnerabilities in Libexpat Project Libexpat

All CVEs affecting Libexpat Project Libexpat →

Other CWE-611 (Improper Restriction of XML External Entity Reference (XXE)) vulnerabilities

Browse all CWE-611 (Improper Restriction of XML External Entity Reference (XXE)) vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: