OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
CVE-2025-58180Published 9 Sep 2025, 19:34 UTC
Real-world risk
1.0/ 10Low
Routine
If the vulnerable configuration applies to you: 2.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
OctoPrint provides a web interface for controlling consumer 3D printers. OctoPrint versions up until and including 1.11.2 contain a vulnerability that allows an authenticated attacker to upload a file under a specially crafted filename that will allow arbitrary command execution if said filename becomes included in a command defined in a system event handler and said event gets triggered. If no event handlers executing system commands with uploaded filenames as parameters have been configured, this vulnerability does not have an impact. The vulnerability is patched in version 1.11.3. As a workaround, OctoPrint administrators who have event handlers configured that include any kind of filename based placeholders should disable those by setting their `enabled` property to `False` or unchecking the "Enabled" checkbox in the GUI based Event Manager. Alternatively, OctoPrint administrators should set `feature.enforceReallyUniversalFilenames` to `true` in `config.yaml` and restart OctoPrint, then vet the existing uploads and make sure to delete any suspicious looking files. As always, OctoPrint administrators are advised to not expose OctoPrint on hostile networks like the public internet, and to vet who has access to their instance.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| OctoPrintNiche | < 1.11.3 | 1.11.3 |
What to do
Update to a fixed version: 1.11.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Exploit-DB entry (link)
EPSS 28.0% chance of exploitation in 30 days (percentile 98), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.108
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.108 × threat 0.951.026
- Rounded to one decimal between 0.1 and 101.0
Exploitation and evidence timeline
- 9 Sep 2025 Published
- 3 Dec 2026 Exploit-DB entry first seen
- 3 Dec 2026 Risk 1.0 (cvss fallback)
Weakness
CWE-78
References
- https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfcvendor-advisory
- https://github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258bmisc
- https://github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841misc
- https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.3misc
- CVE-2025-58180 on CVE.org