Cloudanix VulnDB

CVE-2022-36788

High · 7.8

CVSS

7.8

EPSS

0.6%

Published

Apr 20, 2023

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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.

Exploit Available
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

  1. Craft a malicious STL file that triggers the heap overflow in TriangleMesh clone
  2. Deliver the crafted file to the target via email, download, or shared storage
  3. Victim opens the file in the affected Slic3r application
  4. 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