CVE-2024-24684

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-24684
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-24684.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-24684
Related
Published
2024-05-28T14:15:11Z
Modified
2025-02-21T02:00:02.019123Z
Summary
[none]
Details

Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality of libigl v2.5.0. A specially crafted .off file can lead to stack-based buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.This vulnerability concerns the header parsing occuring while processing an .off file via the readOFF function.

We can see above that at [0] a stack-based buffer called comment is defined with an hardcoded size of 1000 bytes. The call to fscanf at [1] is unsafe and if the first line of the header of the .off files is longer than 1000 bytes it will overflow the header buffer.

References

Affected packages

Git / github.com/libigl/libigl

Affected ranges

Type
GIT
Repo
https://github.com/libigl/libigl
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected

Affected versions

v1.*

v1.3.1
v1.3.2
v1.3.3

v2.*

v2.0.0
v2.1.0
v2.2.0
v2.3.0
v2.4.0
v2.5.0