CVE-2024-45491 is an integer overflow in the dtdCopy function of Expat (libexpat) that only occurs on 32-bit platforms, where UINT_MAX equals SIZE_MAX, which covers many embedded ARM and MIPS devices. It affects Expat before 2.6.3, which fixed it on 4 September 2024, and NVD scores it 9.8.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
1.1%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2024-45491 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Expat / libexpat (dtdCopy, 32-bit platforms) | cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:* | before 2.6.3 (fixed in 2.6.3, 4 September 2024) |
| Siemens SINEC OS on RUGGEDCOM RST2428P and SCALANCE XCM-/XRM-/XCH-/XRH-300 | — | before V3.1 (fixed in V3.1, per SSA-613116) |
| Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (GNU/Linux subsystem) | — | V3.1.5 and later listed as affected, no fix available (per SSA-082556) |
What does this mean for affected devices?
CVE-2024-45491 is an integer overflow (CWE-190) in Expat (libexpat). NVD's description: "An issue was discovered in libexpat before 2.6.3. dtdCopy in xmlparse.c can have an integer overflow for nDefaultAtts on 32-bit platforms (where UINT_MAX equals SIZE_MAX)." NVD's Primary CVSS 3.1 score is 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, while the CISA-ADP score is 7.3 (NVD).
Expat 2.6.3, released 4 September 2024, fixed it through pull request #891, "Detect integer overflow in dtdCopy". The Expat Changes file rates the impact as "denial of service to potentially artitrary code execution" [sic]. The same release fixed CVE-2024-45492, the matching overflow for m_groupSize in nextScaffoldPart, also limited to 32-bit platforms, and CVE-2024-45490, memory corruption when XML_ParseBuffer is called with a negative length.
The 32-bit condition is what makes this an embedded-firmware CVE. On 64-bit Linux size_t is wider than unsigned int, so upstream limits the overflow to 32-bit builds; on the 32-bit ARM and MIPS targets common in routers, switches and controllers, the two types are the same width. Check the ELF class of each binary that links Expat (readelf -h reports ELF32 or ELF64) before ranking the finding.
Siemens ProductCERT names devices that ship the vulnerable Expat and scores the CVE 7.3. SSA-613116 covers SINEC OS before V3.1 on the RUGGEDCOM RST2428P switch and the SCALANCE XCM-/XRM-/XCH-/XRH-300 family, fixed by updating to V3.1. SSA-082556 covers the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP V3.1.5 and later, lists no fix, and recommends limiting access to the subsystem's interactive shell to trusted personnel and only building and running applications from trusted sources. The Debian tracker marks bookworm fixed in 2.5.0-1+deb12u1 (DSA-5770-1) and bullseye in 2.2.10-2+deb11u6 (DLA-3893-1).
This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV). FIRST EPSS gives it 0.011, the 66.9th percentile, in its 2026-11-15 dataset (FIRST EPSS).
The fix is Expat 2.6.3 or later. Later releases fixed more 32-bit overflows, including six library overflows in 2.8.2 and one in expat_realloc in 2.9.0, so a 32-bit device should move to the current Expat release. Our zlib, Expat and libxml2 vulnerabilities in embedded firmware guide lists these 32-bit-only fixes and the upgrade target, and the memory corruption fix guide covers integer overflow checks in C. Other Expat flaws on this site: CVE-2022-40674 and CVE-2022-25235.
Evidence
- libexpat before 2.6.3: dtdCopy integer overflow for nDefaultAtts on 32-bit platforms; NVD Primary CVSS 3.1 9.8; CISA-ADP 7.3; CWE-190. — NVD
- Expat 2.6.3 (4 Sep 2024) fixed CVE-2024-45490, CVE-2024-45491 and CVE-2024-45492; impact denial of service to potentially arbitrary code execution. — Expat Changes
- Fix: pull request #891, detect integer overflow in dtdCopy (fixes #888). — libexpat pull request #891
- SINEC OS before V3.1 on RUGGEDCOM RST2428P and SCALANCE XCM-/XRM-/XCH-/XRH-300 family affected, fix V3.1; Siemens CVSS 7.3. — Siemens SSA-613116
- S7-1500 CPU 1518(F)-4 PN/DP MFP GNU/Linux subsystem V3.1.5 and later affected; no fix available; limit shell access to trusted personnel; only build and run applications from trusted sources. — Siemens SSA-082556
- Debian bookworm fixed in 2.5.0-1+deb12u1 (DSA-5770-1), bullseye in 2.2.10-2+deb11u6 (DLA-3893-1). — Debian Security Tracker
- Not in the CISA KEV catalog version 2026.11.13 as of 2026-11-16. — CISA KEV
- EPSS 0.0113, percentile 0.66921, dataset 2026-11-15. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Does CVE-2024-45491 affect 64-bit devices?
NVD and the Expat Changes file limit the overflow to 32-bit platforms where UINT_MAX equals SIZE_MAX. A 64-bit build of the same Expat version is outside that condition (per NVD and the Expat Changes file).
Which Siemens devices are affected by CVE-2024-45491?
SSA-613116 lists SINEC OS before V3.1 on the RUGGEDCOM RST2428P and the SCALANCE XCM-/XRM-/XCH-/XRH-300 family, fixed in V3.1; SSA-082556 lists the S7-1500 CPU 1518(F)-4 PN/DP MFP GNU/Linux subsystem V3.1.5 with no fix available (per Siemens ProductCERT).
What is the difference between CVE-2024-45491 and CVE-2024-45492?
Both are 32-bit integer overflows fixed in Expat 2.6.3: CVE-2024-45491 is in dtdCopy (nDefaultAtts), CVE-2024-45492 in nextScaffoldPart (m_groupSize) (per the Expat Changes file).
Is CVE-2024-45491 in the CISA KEV catalog?
No, it is absent from catalog version 2026.11.13 as of 2026-11-16. FIRST EPSS gives it 0.011, the 66.9th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).
Questions about this page?