# CVE-2024-24684: Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality of libigl v2.5.0.

- Severity: High 7.8 (CVSS:3.1, scored by talos) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 55% of CVEs (2026-11-30)
- Published: 2024-05-28T14:02:39.939Z
- Modified: 2026-06-17T07:14:41.160Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: talos

## Description

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.

(As written by CVE List.)

## Affected

- libigl libigl: v2.5.0; 2.5.0

## References

- <https://talosintelligence.com/vulnerability_reports/TALOS-2024-1929> (mitigation, third-party-advisory)
- <https://www.talosintelligence.com/vulnerability_reports/TALOS-2024-1929> (mitigation, third-party-advisory)

## Sources

- CVE List: [CVE-2024-24684](https://www.cve.org/CVERecord?id=CVE-2024-24684), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2024-24684](https://nvd.nist.gov/vuln/detail/CVE-2024-24684), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24684 · Whole record: https://cve.day/CVE-2024-24684.json · Rebuilt by cve.day 2026-11-25T22:58:40.974Z
