CVE & CISA-KEV Catalog

CVE-2013-0340

MEDIUMEPSS 97th pctl
6.8
CVSS v2
NVD

Description

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.

How to fix

Remediation Available
expatDebian
Fixed in:2.4.1-2CVE-2013-0340
Fixed in:2.4.1-2CVE-2013-0340
Fixed in:2.4.1-2CVE-2013-0340
expatRocky
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
expatRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
expat-debuginfoRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
expat-debuginfoRocky
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
expat-debugsourceRocky
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
expat-debugsourceRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_2RHSA-2025:22871
Fixed in:0:2.2.10-1.el8_8RHSA-2025:22607
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
expat-develRed Hat / RHEL
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
expat-develRocky
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.5.0-1.el8_10RHSA-2025:21776
Fixed in:0:2.2.10-1.el8_4RHSA-2025:22785
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Fixed in:0:2.2.10-1.el8_6RHSA-2025:22842
Python 2Windows application
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Python 3.10Windows application
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Python 3.11Windows application
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Python 3.12Windows application
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Python 3.8Windows application
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Python 3.9Windows application
Affected:3.6.0 3.6.15Fixed in:3.6.15Python Software Foundation
Affected:3.7.0 3.7.12Fixed in:3.7.12Python Software Foundation
Affected:3.8.0 3.8.12Fixed in:3.8.12Python Software Foundation
Affected:3.9.0 3.9.7Fixed in:3.9.7Python Software Foundation

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v2 Vector

No CVSS vector data available.

Exploit Intelligence

19.43%probability of exploitation in 30 days
97thpercentile

Very high risk: more likely to be exploited than 97% of all known CVEs.

References

Related Vulnerabilities

Other CWE-611 (XML External Entity (XXE)) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-34102Critical9.8100%KEVFix
CVE-2019-9670Critical9.8100%KEVFix
CVE-2022-28219Critical9.897%--
CVE-2024-22024High8.395%--
CVE-2024-38653High7.592%--
CVE-2017-12629Critical9.892%-Fix

Common questions

How do I fix CVE-2013-0340?

Published advisories record a fix for 15 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2013-0340 being actively exploited?

Not that we know of. CVE-2013-0340 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 19.4% is the estimated probability that it will be exploited in the next 30 days. That is higher than 97% of all scored CVEs.

How severe is CVE-2013-0340?

CVE-2013-0340 has a CVSS v2 base score of 6.8, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2013-0340 affect?

Published advisories record a fix for expat (Debian), expat (Rocky), expat (Red Hat / RHEL), expat-debuginfo (Red Hat / RHEL), and 11 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2013-0340
CVE-2013-0340 severity badge

Markdown

[![CVE-2013-0340](https://tridentstack.com/cve/badge/CVE-2013-0340.svg)](https://tridentstack.com/cve/CVE-2013-0340)

HTML

<a href="https://tridentstack.com/cve/CVE-2013-0340"><img src="https://tridentstack.com/cve/badge/CVE-2013-0340.svg" alt="CVE-2013-0340"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-29.