CVE-2023-35952
High · 7.8CVSS
7.8
EPSS
0.5%
Published
May 28, 2024
CISA due date
—
Cloudanix analysis
A flaw in a graphics library can let attackers run their own code on a computer if a user opens a specially made 3D model file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in readOFF.cpp during parsing of comments in the geometric faces section of .off files, enabling arbitrary code execution.
Why it matters to the business
Applications relying on the vulnerable library can be compromised when users open crafted files, potentially leading to unauthorized code execution and system control.
How an attack unfolds
An attacker crafts a malicious .off file containing oversized comment data in the faces section; when an application using the library loads the file, the overflow occurs and attacker-supplied code executes.
How to fix it
Upgrade libigl to a version containing corrected bounds checking in readOFF.cpp comment parsing. Rebuild and redeploy dependent applications. Until a patch is available, restrict processing of untrusted .off files.
How to confirm the fix worked
Confirm the installed libigl version is newer than 2.4.0, run regression tests with known-malicious .off samples, and verify absence of the overflow via static or dynamic analysis of the faces-section parser.
Typical attack path
- Create a specially crafted .off file with oversized comments in the faces section
- Deliver the file to a target via email, download, or shared storage
- Victim opens the file in an application linked against the vulnerable library version
- Parser in readOFF.cpp overflows the stack buffer and redirects execution
How to detect it
Search application logs and crash reports for abnormal termination while parsing .off files; inspect process memory dumps for stack corruption patterns near comment-handling code; correlate file-open events with subsequent suspicious child processes or network activity.
What your security team should do
- Inventory all products and build pipelines that depend on libigl and schedule upgrades
- Add file-type and size validation gates before any .off file is passed to the library
- Enable ASLR, stack canaries, and OS-level exploit mitigations on hosts running affected software
- Monitor EPSS and vendor advisories for a future patch release given the 871-day publication window
The record
Multiple stack-based buffer overflow vulnerabilities exist in the readOFF.cpp functionality of libigl v2.4.0. A specially-crafted .off file can lead to a buffer overflow. An attacker can arbitrary code execution to trigger these vulnerabilities.This vulnerability exists within the code responsible for parsing comments within the geometric faces section within an OFF file.
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-24686 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