Skip to content
OpenAdvisories
Unscored CVE-2013-0340 EUVD-2013-0352GHSA-w3v2-46wf-pq33

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetEntityDeclHandler fu…

Published Jan 21, 2014 · Updated Oct 14, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— libexpat < 2.4.0 2.4.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 expat 2.4.1-2 —
Debian 13 expat 2.4.1-2 —
Debian 12 expat 2.4.1-2 —
Debian 12 libxmltok No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 expat +1 2.4.9-1.el9_1 RHBA-2022:8290
RHEL 8 expat +1 2.5.0-1.el8_10 RHSA-2025:21776
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.0 E4S expat 2.2.10-12.el9_0.4 RHSA-2025:22035
RHEL 8.8 TUS expat 2.2.10-1.el8_8 RHSA-2025:22607
RHEL 8.8 E4S expat 2.2.10-1.el8_8 RHSA-2025:22607
RHEL 8.6 TUS expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.6 E4S expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.6 AUS expat 2.2.10-1.el8_6 RHSA-2025:22842
RHEL 8.4 EUS Long Life expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.4 AUS expat 2.2.10-1.el8_4 RHSA-2025:22785
RHEL 8.2 AUS expat 2.2.10-1.el8_2 RHSA-2025:22871

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 expat +1 2.5.0-1.el8_10 ALSA-2025:21776
ReleasePackageFixed inAdvisory
SLE Micro 6.1 expat 2.7.1-slfo.1.1_1.1 SUSE-SU-2025:20311-1
SLE Micro 6.0 expat 2.7.1-1.1 SUSE-SU-2025:20207-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed expat 2.4.1-1.2 openSUSE-SU-2024:10748-1
openSUSE Tumbleweed python38 3.8.12-1.2 openSUSE-SU-2024:11285-1

Advisories 16

References