CVE-2024-45491: Integer Overflow
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 UINTMAX equals SIZEMAX).
Other sources
libexpat could allow a local attacker to execute arbitrary code on the system, caused by an integer overflow in the dtdCopy function in xmlparse.c. By sending a specially crafted request, an attacker could exploit this vulnerability to execute arbitrary code on the system.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/expatto a version that resolves this vulnerability.Fixed in 2.5.0-1+deb12u1 - Upgrade
Upgrade
debian/expatto a version that resolves this vulnerability.Fixed in 2.6.2-2 - Upgrade
Upgrade
alpine/expatto a version that resolves this vulnerability.Fixed in 2.6.3-r0 - Upgrade
Upgrade
alpine/qt5-qtwebengineto a version that resolves this vulnerability.Fixed in 5.15.16-r12 - Upgrade
Upgrade
alpine/qt5-qtwebengineto a version that resolves this vulnerability.Fixed in 5.15.17-r3 - Upgrade
Upgrade
alpine/qt6-qtwebengineto a version that resolves this vulnerability.Fixed in 6.7.2-r6 - Upgrade
Upgrade
debian/expatto a version that resolves this vulnerability.Fixed in 2.2.10-2+deb11u6Fixed in 2.5.0-1+deb12u1Fixed in 2.6.2-2 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.1.0-4ubuntu1.4+esm9 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.1.0-7ubuntu0.16.04.5+esm9 - Upgrade
Upgrade
ubuntu/libxmltokto a version that resolves this vulnerability.Fixed in 1.2-3ubuntu0.16.04.1~esm4 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.2.5-3ubuntu0.9+esm1 - Upgrade
Upgrade
ubuntu/libxmltokto a version that resolves this vulnerability.Fixed in 1.2-4ubuntu0.18.04.1~esm3 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.2.9-1ubuntu0.7 - Upgrade
Upgrade
ubuntu/libxmltokto a version that resolves this vulnerability.Fixed in 1.2-4ubuntu0.20.04.1~esm3 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.4.7-1ubuntu0.4 - Upgrade
Upgrade
ubuntu/libxmltokto a version that resolves this vulnerability.Fixed in 1.2-4ubuntu0.22.04.1~esm3 - Upgrade
Upgrade
ubuntu/expatto a version that resolves this vulnerability.Fixed in 2.6.1-2ubuntu0.1 - Upgrade
Upgrade
ubuntu/libxmltokto a version that resolves this vulnerability.Fixed in 1.2-4.1ubuntu2.24.0.4.1+esm1 - Upgrade
Upgrade
libexpatto a version that resolves this vulnerability.Fixed in 2.6.3 - Compensating control
Mitigate exploitation by restricting access to any service or interface that parses attacker-controlled XML with libexpat, especially from untrusted users.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-45491?
CVE-2024-45491 is classified as a high severity vulnerability due to the potential for integer overflow on 32-bit platforms.
How do I fix CVE-2024-45491?
To fix CVE-2024-45491, upgrade to libexpat version 2.6.3 or later.
Which versions of libexpat are affected by CVE-2024-45491?
Versions of libexpat earlier than 2.6.3 are affected by CVE-2024-45491.
Is CVE-2024-45491 specific to any operating system?
CVE-2024-45491 primarily affects 32-bit platforms.
What software can be impacted by CVE-2024-45491?
CVE-2024-45491 impacts libexpat, IBM Concert Software, and Debian packages that use affected versions.