CVE-2024-45492: libexpat integer overflow in nextScaffoldPart

CVE-2024-45492 · Severity: critical · CVSS 9.8 · Published 2024-08-30

libexpat is a widely used software library for processing XML data. A vulnerability in this library could allow an attacker to crash applications or potentially execute unauthorized code by providing a specially crafted XML file. This affects systems running on 32-bit architectures and could lead to service outages or data breaches depending on how the library is integrated into specific applications.

Technologies: Libexpat Project Libexpat. Vendors: Libexpat Project.

Quick answers

Is CVE-2024-45492 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-45492 being exploited in the wild.
How severe is CVE-2024-45492?
Critical severity, with a CVSS score of 9.8, published 30 August 2024.
Which products and versions are affected?
libexpat Project libexpat versions before 2.6.3.
Is there a fix for CVE-2024-45492?
A patch was published on 2024-09-03: Fix merged into master branch Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2024-45492 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2024-45492?
Check whether you run Libexpat Project Libexpat or libexpat Project libexpat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

An integer overflow vulnerability exists in libexpat's xmlparse.c within the nextScaffoldPart function. On 32-bit platforms where UINT_MAX equals SIZE_MAX, the m_groupSize variable can overflow during XML parsing. This flaw can be triggered by a remote attacker providing a malicious XML document, leading to a heap-based buffer overflow. Successful exploitation may result in a denial of service (application crash) or arbitrary code execution. The issue is fixed in libexpat version 2.6.3.

Affected products

  • libexpat project libexpat versions before 2.6.3

Timeline

  • 2024-08-26: disclosed: Issue reported on GitHub by TaiYou-TW
  • 2024-08-30: advisory: CVE-2024-45492 published
  • 2024-09-03: patched: Fix merged into master branch
  • 2024-09-04: patched: Version 2.6.3 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.