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.
What to do
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Debian, Red Hat: see the table below for the fixed version per release.
Debian has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | expat | Fixed | 2.4.1-2 | DEBIAN-CVE-2013-0340 |
| Debian 13 | expat | Fixed | 2.4.1-2 | DEBIAN-CVE-2013-0340 |
| Debian 12 | expat | Fixed | 2.4.1-2 | DEBIAN-CVE-2013-0340 |
| Debian 12 | libxmltok | Fix pending | DEBIAN-CVE-2013-0340 | |
| Red Hat Enterprise Linux 9 | expat | Fixed | 0:2.4.9-1.el9_1 | RHBA-2022:8290 |
| Red Hat Enterprise Linux 9 | expat-devel | Fixed | 0:2.4.9-1.el9_1 | RHBA-2022:8290 |
| Red Hat Enterprise Linux 8 | expat | Fixed | 0:2.5.0-1.el8_10 | RHSA-2025:21776 |
| Red Hat Enterprise Linux 8 | expat-devel | Fixed | 0:2.5.0-1.el8_10 | RHSA-2025:21776 |
| Red Hat Enterprise Linux 7 | expat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | expat-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | expat-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | expat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | expat-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | expat | Will not fix Will not fix | ||
| AlmaLinux 8 | expat | Fixed | 2.5.0-1.el8_10 | ALSA-2025:21776 |
| AlmaLinux 8 | expat-devel | Fixed | 2.5.0-1.el8_10 | ALSA-2025:21776 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libexpat: affected: before 2.4.0; fixed in
2.4.0
Vendor advisories:
- https://security.gentoo.org/glsa/201701-21 (vendor-advisory)
References
- http://openwall.com/lists/oss-security/2013/02/22/3
- http://www.openwall.com/lists/oss-security/2013/04/12/6
- http://www.osvdb.org/90634
- http://securitytracker.com/id?1028213
- https://security.gentoo.org/glsa/201701-21
- http://www.securityfocus.com/bid/58233
- https://support.apple.com/kb/HT212805
- https://support.apple.com/kb/HT212804
- https://support.apple.com/kb/HT212807
- https://support.apple.com/kb/HT212819
- https://support.apple.com/kb/HT212814
- https://support.apple.com/kb/HT212815
- http://seclists.org/fulldisclosure/2021/Sep/33
- http://seclists.org/fulldisclosure/2021/Sep/34
- http://seclists.org/fulldisclosure/2021/Sep/40
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.