CVE Catalog

CVE-2024-8176

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.57%

72th percentile - higher than 72% of all known CVEs

Summary

A stack overflow vulnerability exists in the libexpat library due to unbounded recursion when handling nested entity references in XML documents. An attacker can craft a malicious XML file that exhausts stack space, causing a crash.

Risk Assessment

This vulnerability can be exploited for denial-of-service (DoS) attacks by sending a specially crafted XML document remotely. In some environments, it may also lead to memory corruption, posing a risk of privilege escalation.

Recommendation

Update libexpat to the latest patched version immediately to limit recursion depth. In the meantime, implement XML document validation before processing.

Other vulnerabilities in libexpat

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS