CVE-2022-36788
High · 7.8CVSS
7.8
EPSS
0.6%
Published
Apr 20, 2023
CISA due date
—
Cloudanix analysis
A flaw in 3D printing software can let attackers take over a computer simply by getting a victim to open a specially made design file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer overflow in TriangleMesh clone functionality triggered by a specially-crafted STL file, allowing memory corruption.
Why it matters to the business
Attackers can crash applications or execute arbitrary code when users open malicious 3D model files, disrupting design, prototyping, and manufacturing workflows that depend on this library; exploit code is publicly available.
How an attack unfolds
An attacker creates a malicious STL file that overflows a heap buffer during TriangleMesh cloning; the file is delivered to a victim who opens it in vulnerable Slic3r software, triggering memory corruption that can lead to code execution.
How to fix it
Upgrade to a patched version of libslic3r that resolves the TriangleMesh buffer handling issue; avoid opening untrusted STL files until fixed; consider sandboxing or file validation tools for 3D model processing.
How to confirm the fix worked
Test patched builds against known proof-of-concept STL files that previously triggered the overflow; verify absence of crashes or memory corruption indicators during clone operations on malformed inputs.
Typical attack path
- Craft a malicious STL file that triggers the heap overflow in TriangleMesh clone
- Deliver the crafted file to the target via email, download, or shared storage
- Victim opens the file in the affected Slic3r application
- Overflow occurs during model processing, enabling code execution or denial of service
How to detect it
Review application logs and crash reports for STL file processing errors; search for unusually large or malformed STL files in recent user activity; monitor for unexpected process behavior or memory-related exceptions when handling model files.
What your security team should do
- Apply updates to libslic3r as soon as a fixed release is available
- Block or quarantine untrusted STL files at email gateways and file shares
- Implement runtime monitoring for buffer overflow crashes in 3D printing pipelines
- Educate users on risks of opening files from unknown sources
The record
A heap-based buffer overflow vulnerability exists in the TriangleMesh clone functionality of Slic3r libslic3r 1.3.0 and Master Commit b1a5500. A specially-crafted STL file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | slic3r | 0 | No fix |
| Debian:12 | slic3r | 0 | No fix |
| Ubuntu:16.04:LTS | slic3r | 0 | No fix |
| Ubuntu:18.04:LTS | slic3r | 0 | No fix |
| Ubuntu:20.04:LTS | slic3r | 0 | No fix |
| Ubuntu:22.04:LTS | slic3r | 0 | No fix |
| Ubuntu:24.04:LTS | slic3r | 0 | No fix |
| Ubuntu:24.10 | slic3r | 0 | No fix |
| Ubuntu:25.04 | slic3r | 0 | No fix |
| Ubuntu:25.10 | slic3r | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | slic3r | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | slic3r | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | slic3r | 0 | No fix |
Related vulnerabilities
- CVE-2021-44961 A memory leakage flaw exists in the class PerimeterGenerator of Slic3r libslic3r 1.3.0… Also affects slic3r
- CVE-2026-78402 Stack-based buffer overflow and out-of-bounds write vulnerability in Thales Sentinel Keys… CWE-787
- CVE-2026-119777 A flaw was found in GStreamer's gst-plugins-bad H.266/VVC parser. CWE-787
- CVE-2026-104065 Scribus before 1.6.7 contains an out-of-bounds write vulnerability in the importdrw… CWE-787
- CVE-2026-104067 Scribus before 1.6.7 contains an out-of-bounds memory access vulnerability in the… CWE-787
- CVE-2026-104066 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the Mac PICT image… CWE-787
- CVE-2026-104061 Scribus before 1.6.7 contains a heap out-of-bounds write vulnerability in the… CWE-787
- CVE-2026-104062 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the PICT image… CWE-787