CVE-2013-0340

NONE EPSS 19.4%
Updated Oct 14, 2026
Python
Parameter Value
Affected Versions 3.6.0 — 8.0
Fixed In 2.4.0
Type CWE-611
Vendor Python
Public PoC No

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.

Weakness Type (CWE)

Vulnerable Products 10

Configuration From (including) Up to (excluding)
Libexpat_Project Libexpat
cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
— 2.4.0
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.6.0 3.6.15
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.7.0 3.7.12
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.8.0 3.8.12
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.9.0 3.9.7
Apple Ipados
cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:*
— 14.8
Apple Iphone_Os
cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*
— 14.8
Apple Macos
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
— 11.6
Apple Tvos
cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:*
— 15.0
Apple Watchos
cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:*
— 8.0

References 26

http://openwall.com/lists/oss-security/2013/02/22/3
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Oct/61
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Oct/62
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Oct/63
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/33
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/34
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/35
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/38
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/39
secalert@redhat.com
http://seclists.org/fulldisclosure/2021/Sep/40
secalert@redhat.com
http://securitytracker.com/id?1028213
secalert@redhat.com
http://www.openwall.com/lists/oss-security/2013/04/12/6
secalert@redhat.com
http://www.openwall.com/lists/oss-security/2021/10/07/4
secalert@redhat.com
http://www.osvdb.org/90634
secalert@redhat.com
http://www.securityfocus.com/bid/58233
secalert@redhat.com
https://github.com/libexpat/libexpat/blob/R_2_4_1/expat/Changes
secalert@redhat.com
https://lists.apache.org/thread.html/r41eca5f4f09e74436cbb05dec450fc2bef37b5d3e…
secalert@redhat.com
https://lists.apache.org/thread.html/rfb2c193360436e230b85547e85a41bea0916916f9…
secalert@redhat.com
https://security.gentoo.org/glsa/201701-21
secalert@redhat.com
https://support.apple.com/kb/HT212804
secalert@redhat.com
https://support.apple.com/kb/HT212805
secalert@redhat.com
https://support.apple.com/kb/HT212807
secalert@redhat.com
https://support.apple.com/kb/HT212814
secalert@redhat.com
https://support.apple.com/kb/HT212815
secalert@redhat.com
https://support.apple.com/kb/HT212819
secalert@redhat.com
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
0b142b55-0307-4c5a-b3c9-f314f3fb7c5e