CVE-2013-0340

Python 3.8 and 3 others: expat before version 2.4.0 does not properly handle entities expansion unless an application developer…

CVE-2013-0340 is fixed in 3 products on 2 platforms, first by Python 3.9 3.9.7, released August 30, 2021. 3 other affected products have no fix yet. It is not reported as exploited. Patch Radar priority: Routine.

RoutineFixed on 2 platforms
CVSS
6.8
Important
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.1943
97th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Windows apps
Python 3.9 3.9.7 Python 3.9 3.9.7 Aug 30, 2021
Linux
expat · RHEL 8 0:2.5.0-1.el8_10 RHSA-2025:21776 Nov 19, 2025
expat · RHEL 9 0:2.4.9-1.el9_1 RHBA-2022:8290 Nov 15, 2022
expat · almalinux 8 2.5.0-1.el8_10 ALSA-2025:21776 Nov 19, 2025
expat-devel · RHEL 8 0:2.5.0-1.el8_10 RHSA-2025:21776 Nov 19, 2025
expat-devel · RHEL 9 0:2.4.9-1.el9_1 RHBA-2022:8290 Nov 15, 2022
expat-devel · almalinux 8 2.5.0-1.el8_10 ALSA-2025:21776 Nov 19, 2025
No fix yet
Python 3.6 (Windows apps) No fix yet no-fix n/a
Python 3.7 (Windows apps) No fix yet no-fix n/a
Python 3.8 (Windows apps) No fix yet no-fix n/a

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.