CVE-2013-0340Libexpat Project Libexpat
Medium 6.8 No auth neededHigh EPSS
Follow: this CVE · Libexpat Project · Libexpat Project Libexpat We alert you by email or Slack (account required).
- Priority
- 58
- CVSS 2.0
- 6.8
- EPSS
- 19.4% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- Jan 21, 2014
- Updated
- Oct 14, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Libexpat.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libexpat_project | libexpat | < 2.4.0 |
| python | python | ≥ 3.6.0 < 3.6.15 |
| python | python | ≥ 3.7.0 < 3.7.12 |
| python | python | ≥ 3.8.0 < 3.8.12 |
| python | python | ≥ 3.9.0 < 3.9.7 |
| apple | ipados | < 14.8 |
| apple | iphone_os | < 14.8 |
| apple | macos | < 11.6 |
| apple | tvos | < 15.0 |
| apple | watchos | < 8.0 |
Official advisories
- Red Hat Security Advisory: expat security update · Red Hat · RHSA-2025:22871 · Nov 25, 2026 High
- Red Hat Security Advisory: expat security update · Red Hat · RHSA-2025:22842 · Dec 9, 2025 High
- Red Hat Security Advisory: expat security update · Red Hat · RHSA-2025:22785 · Dec 5, 2025 High
Also: Red Hat (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- openwall.com Exploit Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- seclists.org Mailing List Third Party Advisory
- securitytracker.com Third Party Advisory VDB Entry
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.osvdb.org Broken Link
- www.securityfocus.com Broken Link Third Party Advisory VDB Entry
- github.com
- lists.apache.org
- lists.apache.org
- security.gentoo.org Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- support.apple.com Third Party Advisory
- cert-portal.siemens.com