CVE-2013-0340 Details
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.
A denial-of-service vulnerability has been identified in the Expat XML library, specifically in versions prior to 2.4.0. The issue arises from improper handling of entity expansions, which can lead to excessive resource consumption. This vulnerability can be exploited by sending a crafted XML document that takes advantage of entity expansion features, causing the application to consume significant CPU or memory resources. Additionally, in certain contexts, this vulnerability could be used to read arbitrary files or send HTTP requests to intranet servers.
Users are advised to upgrade to Expat version 2.4.1 or later, where this vulnerability has been addressed. Instructions for updating Expat can be found in the Gentoo Linux Security Advisory GLSA 201701-21.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-611 | Improper Restriction of XML External Entity Reference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libexpat project libexpat | < 2.4.0 |
CPE
Remediation
| |
| python python | >= 3.6.0, < 3.6.15 >= 3.7.0, < 3.7.12 >= 3.8.0, < 3.8.12 >= 3.9.0, < 3.9.7 |
CPE
Remediation
| |
| apple ipados | < 14.8 |
CPE
Remediation
| |
| apple iphone os | < 14.8 |
CPE
Remediation
| |
| apple macos | < 11.6 |
CPE
Remediation
| |
| apple tvos | < 15.0 |
CPE
Remediation
| |
| apple watchos | < 8.0 |
CPE
Remediation
| |
Change History
28 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 16, 2026 | CVE Modified | [email protected] |
| Apr 29, 2026 | Status Change | [email protected] |
| Nov 25, 2025 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Feb 13, 2023 | CVE Modified | [email protected] |
| Jan 9, 2023 | CPE Deprecation Remap | [email protected] |
| Jul 5, 2022 | Modified Analysis | [email protected] |
| Oct 27, 2021 | CVE Modified | [email protected] |
| Oct 7, 2021 | CVE Modified | [email protected] |
| Oct 7, 2021 | CVE Modified | [email protected] |
| Sep 22, 2021 | CVE Modified | [email protected] |
| Sep 21, 2021 | CVE Modified | [email protected] |
| Sep 20, 2021 | CVE Modified | [email protected] |
| May 25, 2021 | Modified Analysis | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jan 25, 2021 | CPE Deprecation Remap | [email protected] |
| Jul 1, 2017 | CVE Modified | [email protected] |
| Jan 22, 2014 | Initial Analysis | [email protected] |