Skip to content
Fencer Intel
medium 6.8

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 Fencer

Vendor 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 expat
    affected: 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_1
    fixed: vendor fix RHBA-2022:8290
  • Red Hat Enterprise Linux BaseOS (v. 8) expat 2.5.0-1.el8_10
    fixed: vendor fix RHSA-2025:21776
  • Red Hat Enterprise Linux BaseOS (v. 9) expat 2.4.9-1.el9_1
    fixed: vendor fix RHBA-2022:8290
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) expat 2.2.10-1.el8_2
    fixed: vendor fix RHSA-2025:22871
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) expat 2.2.10-1.el8_4
    fixed: 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_6
    fixed: vendor fix RHSA-2025:22842
  • Red Hat Enterprise Linux BaseOS E4S (v.8.8) expat 2.2.10-1.el8_8
    fixed: vendor fix RHSA-2025:22607
show 5 more
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) expat 2.2.10-12.el9_0.4
    fixed: vendor fix RHSA-2025:22035
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) expat 2.2.10-1.el8_4
    fixed: vendor fix RHSA-2025:22785
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) expat 2.2.10-1.el8_6
    fixed: vendor fix RHSA-2025:22842
  • Red Hat Enterprise Linux BaseOS TUS (v.8.8) expat 2.2.10-1.el8_8
    fixed: 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_8
    +4 more products
    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
    not affected: vulnerable code not present

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.5
    affected: 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

Sources

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.