CVEfocus › CVE database › CVE-2013-0340

CVE-2013-0340

EPSS 19.4% (higher than 97% of CVEs)Published 2014-01-21Updated 2026-10-14Assigner: redhat

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

9Fixed
1Fix pending
6Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Debian 14expatFixed2.4.1-2DEBIAN-CVE-2013-0340
Debian 13expatFixed2.4.1-2DEBIAN-CVE-2013-0340
Debian 12expatFixed2.4.1-2DEBIAN-CVE-2013-0340
Debian 12libxmltokFix pendingDEBIAN-CVE-2013-0340
Red Hat Enterprise Linux 9expatFixed0:2.4.9-1.el9_1RHBA-2022:8290
Red Hat Enterprise Linux 9expat-develFixed0:2.4.9-1.el9_1RHBA-2022:8290
Red Hat Enterprise Linux 8expatFixed0:2.5.0-1.el8_10RHSA-2025:21776
Red Hat Enterprise Linux 8expat-develFixed0:2.5.0-1.el8_10RHSA-2025:21776
Red Hat Enterprise Linux 7expatWill not fix
Will not fix
Red Hat Enterprise Linux 7expat-develWill not fix
Will not fix
Red Hat Enterprise Linux 7expat-staticWill not fix
Will not fix
Red Hat Enterprise Linux 6expatWill not fix
Will not fix
Red Hat Enterprise Linux 6expat-develWill not fix
Will not fix
Red Hat Enterprise Linux 5expatWill not fix
Will not fix
AlmaLinux 8expatFixed2.5.0-1.el8_10ALSA-2025:21776
AlmaLinux 8expat-develFixed2.5.0-1.el8_10ALSA-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.

Vendor advisories:

References

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.