CVE-2013-0340: expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler…
CVE-2013-0340 affects 105 listed versions of Apple macOS, Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Apple macOS
77 of 250 listed versions are affected. Fixed in 11.6. The newest release, 27.2.1, is not affected.
11.5.2 11.5.1 11.5 11.4 11.3.1 11.3 11.2.6 11.2.3 11.2.2 11.2.1 11.2.0 11.2 11.1.0 11.1 11.0.1 11.0 10.15.8 10.15.7-security_update_2022-004 10.15.7 10.15.6 10.15.5 10.15.4 10.15.3 10.15.2 10.15.1 10.15 10.14.6 10.14.5 10.14.4 10.14.3 10.14.2 10.14.1 10.14 10.13.6 10.13.5 10.13.4 10.13.3 10.13.2 10.13.1 10.13 10.12.6 10.12.5 10.12.4 10.12.3 10.12.2 10.12.1 10.12 10.11.6 10.11.5 10.11.4 10.11.3 10.11.2 10.11.1 10.11 10.10.5 10.10.4 10.10.3 10.9.5 10.9 10.8.5 and 17 more
Python
28 of 250 listed versions are affected. Fixed in 3.8.12, 3.7.12, 3.6.15. The newest release, 3.15.2, is not affected.
3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.7.11 3.7.10 3.7.9 3.7.8 3.7.7 3.7.6 3.7.5 3.7.4 3.7.3 3.6.14 3.6.13 3.6.12 3.6.11 3.6.10 3.6.9 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2
What it is
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.
AV:N/AC:M/Au:N/C:P/I:P/A:P (NVD)
Published by Red Hat on 21 January 2014. Last changed 14 October 2026.
Sources
Check one version you run: look CVE-2013-0340 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.