CVE-2024-24684CWE-121

Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality of libigl v2.5.0

High · published May 28, 2024

CVSS v3.1
7.8
EPSS
1%
Percentile
54.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00745 · 54.3th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2024-05-28T14:02Z
EPSS history
Timeline
  • 28 MAY 14:02Z
    Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality of libigl v2.5.0
    cvelistv5