CVE-2024-24684

Source
https://cve.org/CVERecord?id=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
Downstream
Published
2024-05-28T14:02:39.939Z
Modified
2026-07-15T01:48:59.578458887Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "cna_assigner": "talos",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24684.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "v2.5.0"
                },
                {
                    "last_affected": "v2.5.0"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-121"
    ]
}
References

Affected packages

Git / github.com/libigl/libigl

Affected ranges

Type
GIT
Repo
https://github.com/libigl/libigl
Events
Database specific
{
    "cpe": "cpe:2.3:a:libigl:libigl:2.5.0:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "2.5.0"
        },
        {
            "last_affected": "2.5.0"
        }
    ],
    "source": "CPE_STRING"
}

Affected versions

2.*
2.5.0
v2.*
v2.5.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-24684.json"