CVE-2024-8176

high

Description

A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents. When parsing an XML document with deeply nested entity references, libexpat can be forced to recurse indefinitely, exhausting the stack space and causing a crash. This issue could lead to denial of service (DoS) or, in some cases, exploitable memory corruption, depending on the environment and library usage.

References

https://ubuntu.com/security/CVE-2024-8176

https://security-tracker.debian.org/tracker/CVE-2024-8176

https://gitlab.alpinelinux.org/alpine/aports/-/commit/d068c3ff36fc6f4789988a09c69b434db757db53

https://github.com/libexpat/libexpat/issues/893

https://github.com/libexpat/libexpat/blob/R_2_7_0/expat/Changes#L40-L52

https://bugzilla.suse.com/show_bug.cgi?id=1239618

https://bugzilla.redhat.com/show_bug.cgi?id=2310137

https://blog.hartwork.org/posts/expat-2-7-0-released/

https://access.redhat.com/security/cve/CVE-2024-8176

http://www.openwall.com/lists/oss-security/2025/03/15/1

Details

Source: Mitre, NVD

Published: 2025-03-14

Updated: 2025-03-17

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: High