CVE-2023-35953
High · 7.8CVSS
7.8
EPSS
0.5%
Published
May 28, 2024
CISA due date
—
Cloudanix analysis
A flaw in a geometry library can let attackers run harmful code on a computer simply by getting it to open a specially made 3D file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in libigl readOFF.cpp during comment parsing inside the geometric vertices section of an OFF file, enabling arbitrary code execution when a malformed file is processed.
Why it matters to the business
Attackers could execute malicious code on systems that open crafted geometry files, leading to unauthorized access, data theft, or disruption of design and simulation workflows that rely on the library.
How an attack unfolds
An attacker creates a specially crafted OFF file containing an oversized comment within the vertices section. When a victim application using the vulnerable libigl library opens the file, the parsing routine overflows the stack buffer and allows the attacker to control execution flow for code execution.
How to fix it
Upgrade libigl to a version containing the corrected readOFF.cpp parsing logic. Validate the update by confirming the library version and testing file ingestion with known-good OFF files.
How to confirm the fix worked
Confirm the installed libigl version is newer than 2.4.0 and that the readOFF.cpp changes addressing comment buffer handling are present. Reprocess a set of test OFF files containing comments to ensure no crashes or unexpected behavior occur.
Typical attack path
- Craft a malicious OFF file that triggers the buffer overflow in comment parsing
- Deliver the file to the target via email, download link, or shared storage
- Victim opens the file using software linked against the vulnerable libigl version
- Overflow occurs during vertices section processing, leading to arbitrary code execution
How to detect it
Review application logs for crashes or errors during OFF file parsing. Search process execution and file-access logs for unexpected child processes spawned while handling .off files. Correlate with user activity around geometry file ingestion.
What your security team should do
- Identify all applications and build pipelines that depend on libigl and schedule immediate upgrades
- Add file-type validation and sandboxing for OFF file processing until patches are applied
- Monitor vulnerability feeds for any future public exploits targeting this parsing flaw
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 vertices 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