CVE-2020-28599

7.8 HIGH

📋 TL;DR

This CVE-2020-28599 is a stack-based buffer overflow vulnerability in OpenSCAD's STL file import functionality. An attacker can craft a malicious STL file that, when processed by OpenSCAD, could lead to arbitrary code execution. Users who process untrusted STL files with vulnerable OpenSCAD versions are affected.

💻 Affected Systems

Products:
  • OpenSCAD
Versions: openscad-2020.12-RC2 and earlier versions
Operating Systems: Linux, Windows, macOS
Default Config Vulnerable: ⚠️ Yes
Notes: All configurations that process STL files are vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution with the privileges of the OpenSCAD process, potentially leading to full system compromise.

🟠

Likely Case

Application crash (denial of service) or limited code execution if exploit attempts fail.

🟢

If Mitigated

No impact if patched or if untrusted STL files are not processed.

🌐 Internet-Facing: LOW - OpenSCAD is typically not an internet-facing service.
🏢 Internal Only: MEDIUM - Risk exists when processing untrusted STL files internally.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires user to open a malicious STL file; no authentication needed.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: OpenSCAD 2021.01 and later

Vendor Advisory: https://github.com/openscad/openscad/releases

Restart Required: Yes

Instructions:

1. Download OpenSCAD 2021.01 or later from official sources. 2. Install the new version. 3. Restart the application.

🔧 Temporary Workarounds

Avoid processing untrusted STL files

all

Do not open STL files from untrusted sources with vulnerable OpenSCAD versions.

🧯 If You Can't Patch

  • Restrict OpenSCAD usage to trusted users only.
  • Implement application whitelisting to prevent execution of malicious payloads.

🔍 How to Verify

Check if Vulnerable:

Check OpenSCAD version: openscad --version. If version is 2020.12-RC2 or earlier, it's vulnerable.

Check Version:

openscad --version

Verify Fix Applied:

Verify version is 2021.01 or later: openscad --version.

📡 Detection & Monitoring

Log Indicators:

  • Application crashes when processing STL files
  • Unusual process behavior after STL file import

Network Indicators:

  • None - this is a local file processing vulnerability

SIEM Query:

Process:OpenSCAD AND (EventID:1000 OR EventID:1001) AND FileExtension:stl

🔗 References

📤 Share & Export