CVE-2013-0340
Reported by redhat · Published January 21, 2014
libexpat is fixed in 2.4.0 (GitHub Packages)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libexpat | GitHub Packages | 2.4.0 |
| debian/python-3.11 | debian | 3.10.0-rc2, 3.9.7, 3.8.12, 3.7.12, 3.6.15 |
| tvos | apple | 15.0 |
| ipados | apple | 14.8 |
| debian/python-3.10 | debian | 3.10.0-rc2, 3.9.7, 3.8.12, 3.7.12, 3.6.15 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| watchos | apple | 8.0 |
| debian/python-3.13 | debian | 3.10.0-rc2, 3.9.7, 3.8.12, 3.7.12, 3.6.15 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| python | python | 3.9.7, 3.8.12, 3.7.12, 3.6.15 |
| iphone_os | apple | 14.8 |
12 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| 0 | ||
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
Timeline
- Feb 21, 2013 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jun 2, 2026 Security Advisory (3 in total, the first dated here)
- Oct 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2013-0340
vulnetix vdb fixes CVE-2013-0340
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2013-0340/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [oss-security] 20130221 CVEs for libxml2 and expat internal and external XML entity expansion mailing-listx_refsource_MLIST
- [oss-security] 20130413 Re-evaluating expat/libxml2 CVE assignments mailing-listx_refsource_MLIST
- 90634 vdb-entryx_refsource_OSVDB
- 1028213 vdb-entryx_refsource_SECTRACK
- GLSA-201701-21 vendor-advisoryx_refsource_GENTOO
- 58233 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 20210921 APPLE-SA-2021-09-20-1 iOS 15 and iPadOS 15 mailing-listx_refsource_FULLDISC
- 20210921 APPLE-SA-2021-09-20-2 watchOS 8 mailing-listx_refsource_FULLDISC
- 20210921 APPLE-SA-2021-09-20-8 Additional information for APPLE-SA-2021-09-13-4 Security Update 2021-005 Catalina mailing-listx_refsource_FULLDISC
- 20210921 APPLE-SA-2021-09-20-3 tvOS 15 mailing-listx_refsource_FULLDISC
- 20210921 APPLE-SA-2021-09-20-6 Additional information for APPLE-SA-2021-09-13-1 iOS 14.8 and iPadOS 14.8 mailing-listx_refsource_FULLDISC
- 20210921 APPLE-SA-2021-09-20-7 Additional information for APPLE-SA-2021-09-13-3 macOS Big Sur 11.6 mailing-listx_refsource_FULLDISC
- [announce] 20211007 CVE-2021-40439: Apache OpenOffice: Billion Laughs mailing-listx_refsource_MLIST
- [openoffice-users] 20211007 CVE-2021-40439: Apache OpenOffice: Billion Laughs mailing-listx_refsource_MLIST
…and 6 more