CVE-2024-24686
High · 7.8CVSS
7.8
EPSS
0.5%
Published
May 28, 2024
CISA due date
—
Cloudanix analysis
A bug in a 3D graphics library could let attackers take over a computer simply by getting someone to open a specially made file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow triggered during parsing of comments in the faces section of a crafted .off file by the readOFF function in libigl v2.5.0, enabling memory corruption that can lead to arbitrary code execution or application crash.
Why it matters to the business
Systems processing untrusted 3D model files risk remote code execution, potentially compromising design, simulation, or graphics workflows and allowing attackers to gain control of affected machines.
How an attack unfolds
An attacker creates a malicious .off file containing an oversized comment in the faces section, delivers it to a target, and when the file is opened by an application using the vulnerable readOFF function the overflow occurs and attacker-controlled code executes.
How to fix it
Upgrade libigl to the latest patched release that resolves the readOFF buffer overflow; until then, restrict processing of .off files from untrusted sources and consider sandboxing or file-type allow-listing.
How to confirm the fix worked
Confirm the installed libigl version is newer than 2.5.0, run regression tests with known-malicious .off samples, and verify that oversized comments in the faces section no longer cause overflows or crashes.
Typical attack path
- Craft a malicious .off file embedding an oversized comment in the faces section
- Deliver the file to the victim via email, download, or shared storage
- Victim opens the file in an application linked against vulnerable libigl
- readOFF parses the comment, triggering stack buffer overflow and code execution
How to detect it
Monitor application logs and crash reports for segmentation faults or buffer-related errors when .off files are processed; inspect file-processing services for unexpected child processes or memory corruption indicators after handling .off content.
What your security team should do
- Track upstream libigl releases for the official fix and schedule prompt upgrades
- Implement application-level controls to reject or quarantine untrusted .off files
- Add .off file handling to sandbox or containerized execution environments
- Update incident response playbooks to include .off file analysis for suspected exploitation
The record
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 parsing of comments within the faces section of an `.off` file processed via the `readOFF` function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | slic3r-prusa | 0 | No fix |
| Ubuntu:20.04:LTS | slic3r-prusa | 0 | No fix |
| Ubuntu:22.04:LTS | slic3r-prusa | 0 | No fix |
| Ubuntu:24.04:LTS | slic3r-prusa | 0 | No fix |
| Ubuntu:24.10 | slic3r-prusa | 0 | No fix |
| Ubuntu:25.04 | slic3r-prusa | 0 | No fix |
| Ubuntu:25.10 | slic3r-prusa | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | slic3r-prusa | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | slic3r-prusa | 0 | No fix |
Related vulnerabilities
- CVE-2024-24685 Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality… Also affects slic3r-prusa
- CVE-2024-24684 Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality… Also affects slic3r-prusa
- CVE-2024-24583 Multiple out-of-bounds read vulnerabilities exist in the readMSH functionality of libigl… Also affects slic3r-prusa
- CVE-2024-23951 Multiple improper array index validation vulnerabilities exist in the readMSH… Also affects slic3r-prusa
- CVE-2024-24584 Multiple out-of-bounds read vulnerabilities exist in the readMSH functionality of libigl… Also affects slic3r-prusa
- CVE-2024-23949 Multiple improper array index validation vulnerabilities exist in the readMSH… Also affects slic3r-prusa
- CVE-2024-23950 Multiple improper array index validation vulnerabilities exist in the readMSH… Also affects slic3r-prusa
- CVE-2024-23948 Multiple improper array index validation vulnerabilities exist in the readMSH… Also affects slic3r-prusa