CVE-2013-0340 json
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler fu…
published 12y ago modified 26d ago also EUVD-2013-0352
- cvss
- 6.8
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 19.4%
- EPSS 19.4% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libexpat libexpat 2.4.0
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP V3.1.5
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP V3.1.5
- expat Debian 14, Debian 13, Debian 12 2.4.1-2
debian advisories DEBIAN-CVE-2013-0340
- expat RHEL 9 2.4.9-1.el9_1
- expat RHEL 8 2.5.0-1.el8_10
- expat RHEL 8.2 AUS 2.2.10-1.el8_2
- expat RHEL 8.6 TUS, RHEL 8.6 E4S, RHEL 8.6 AUS 2.2.10-1.el8_6
- expat RHEL 8.4 EUS_LONG_LIFE, RHEL 8.4 AUS 2.2.10-1.el8_4
- expat RHEL 8.8 TUS, RHEL 8.8 E4S 2.2.10-1.el8_8
- expat RHEL 9.0 E4S 2.2.10-12.el9_0.4
red hat advisories RHSA-2025:22871RHSA-2025:22842RHSA-2025:22785RHSA-2025:22607RHBA-2022:8290RHSA-2025:22035
- expat Linux Micro 6.1 2.7.1-slfo.1.1_1.1
- expat Linux Micro 6.0 2.7.1-1.1
suse advisories SUSE-SU-2025:20311-1SUSE-SU-2025:20207-1
- expat openSUSE Tumbleweed 2.4.1-1.2
- python38 openSUSE Tumbleweed 3.8.12-1.2
opensuse advisories openSUSE-SU-2024:10748-1openSUSE-SU-2024:11285-1
- expat AlmaLinux 8 2.5.0-1.el8_10
almalinux advisories ALSA-2025:21776
Is CVE-2013-0340 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2013-0340 updated cvss 4.3
expat: internal entity expansion
-
Red Hat Enterprise Linux 5 expat Red Hat Enterprise Linux 6 expat Red Hat Enterprise Linux 7 expataffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 9) expat-devel 2.4.9-1.el9_1, expat-debuginfo 2.4.9-1.el9_1, expat-debugsource 2.4.9-1.el9_1fixed: vendor fix RHBA-2022:8290
-
Red Hat Enterprise Linux BaseOS (v. 8) expat 2.5.0-1.el8_10fixed: vendor fix RHSA-2025:21776
-
Red Hat Enterprise Linux BaseOS (v. 9) expat 2.4.9-1.el9_1fixed: vendor fix RHBA-2022:8290
-
Red Hat Enterprise Linux BaseOS AUS (v. 8.2) expat 2.2.10-1.el8_2fixed: vendor fix RHSA-2025:22871
-
Red Hat Enterprise Linux BaseOS AUS (v.8.4) expat 2.2.10-1.el8_4fixed: vendor fix RHSA-2025:22785
-
Red Hat Enterprise Linux BaseOS AUS (v.8.6) expat 2.2.10-1.el8_6 Red Hat Enterprise Linux BaseOS E4S (v.8.6) expat 2.2.10-1.el8_6fixed: vendor fix RHSA-2025:22842
-
Red Hat Enterprise Linux BaseOS E4S (v.8.8) expat 2.2.10-1.el8_8fixed: vendor fix RHSA-2025:22607
show 5 moreshow fewer
-
Red Hat Enterprise Linux BaseOS E4S (v.9.0) expat 2.2.10-12.el9_0.4fixed: vendor fix RHSA-2025:22035
-
Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4fixed: vendor fix RHSA-2025:22785
-
Red Hat Enterprise Linux BaseOS TUS (v.8.6) expat 2.2.10-1.el8_6fixed: vendor fix RHSA-2025:22842
-
Red Hat Enterprise Linux BaseOS TUS (v.8.8) expat 2.2.10-1.el8_8fixed: vendor fix RHSA-2025:22607
-
Red Hat Enterprise Linux AppStream E4S (v.9.0) expat-devel 2.2.10-12.el9_0.4, expat-debuginfo 2.2.10-12.el9_0.4, expat-debugsource 2.2.10-12.el9_0.4 Red Hat Enterprise Linux BaseOS AUS (v. 8.2) expat 2.2.10-1.el8_2 Red Hat Enterprise Linux BaseOS AUS (v.8.4) expat 2.2.10-1.el8_4 Red Hat Enterprise Linux BaseOS AUS (v.8.6) expat 2.2.10-1.el8_6 Red Hat Enterprise Linux BaseOS E4S (v.8.6) expat 2.2.10-1.el8_6 Red Hat Enterprise Linux BaseOS E4S (v.8.8) expat 2.2.10-1.el8_8not affected: vulnerable code not present
+4 more productsfewer
Red Hat Enterprise Linux BaseOS E4S (v.9.0) expat 2.2.10-12.el9_0.4 Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4 Red Hat Enterprise Linux BaseOS TUS (v.8.6) expat 2.2.10-1.el8_6 Red Hat Enterprise Linux BaseOS TUS (v.8.8) expat 2.2.10-1.el8_8
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-348-10 updated cvss 9.1
Siemens SIMATIC S7-1500
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.0, < 3.1.5 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.0, < 3.1.5 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.0, < 3.1.5affected: fixed in V3.1.5, mitigation support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last mo.
Exploit prediction
19.43% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- openwall.com http://openwall.com/lists/oss-security/2013/02/22/3 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected products
- libexpat libexpat
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
openwall.com
/lists/oss-security/2013/02/22/3
mailing-list, exploit, third-party-advisory
-
security.gentoo.org
/glsa/201701-21
vendor-advisory, third-party-advisory
-
openwall.com
/lists/oss-security/2013/04/12/6
mailing-list, third-party-advisory
-
osvdb.org
/90634
vdb-entry, broken-link
-
securitytracker.com
/id?1028213
vdb-entry, third-party-advisory
-
securityfocus.com
/bid/58233
vdb-entry, broken-link, third-party-advisory
-
support.apple.com
/kb/HT212805
third-party-advisory
-
support.apple.com
/kb/HT212804
third-party-advisory
-
support.apple.com
/kb/HT212807
third-party-advisory
-
support.apple.com
/kb/HT212819
third-party-advisory
-
support.apple.com
/kb/HT212814
third-party-advisory
-
support.apple.com
/kb/HT212815
third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/33
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/34
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/40
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/35
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/38
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Sep/39
mailing-list, third-party-advisory
-
lists.apache.org
/thread.html/r41eca5f4f09e74436cbb05dec450fc2bef37b5d3e966aa7cc5fada6d%40%3Cannounce.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rfb2c193360436e230b85547e85a41bea0916916f96c501f5b6fc4702%40%3Cusers.openoffice.apache.org%3E
mailing-list
-
openwall.com
/lists/oss-security/2021/10/07/4
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Oct/62
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Oct/63
mailing-list, third-party-advisory
-
seclists.org
/fulldisclosure/2021/Oct/61
mailing-list, third-party-advisory
- github.com /libexpat/libexpat/blob/R_2_4_1/expat/Changes
- cert-portal.siemens.com /productcert/html/ssa-398330.html
Sources
- CVE List CVE-2013-0340
- NVD CVE-2013-0340
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.