FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

expat: improper restriction of xml entity expansion depth

Affected packages
expat < 2.7.0

Details

VuXML ID 8f71ad3b-14f5-11f0-87ba-002590c1f29c
Discovery 2025-03-14
Entry 2025-04-09

secalert@redhat.com reports:

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

CVE Name CVE-2024-8176
URL https://nvd.nist.gov/vuln/detail/CVE-2024-8176