OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
Key facts
- Attack vector
- Adjacent network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OctoPrint | OctoPrint | before 1.11.3 | 1.11.3 | Patch available | CNA |
| — | octoprint (PyPI) | before 1.11.3 | 1.11.3 | Patch available | GHSA-49mj-x8jp-qvfc |
- OctoPrint VendorOctoPrint Affected before 1.11.3 Fixed in 1.11.3 Patch available CNA
- octoprint (PyPI) Vendor— Affected before 1.11.3 Fixed in 1.11.3 Patch available GHSA-49mj-x8jp-qvfc
Remediation
- Fix · CNA OctoPrint (OctoPrint) Fixed in 1.11.3
- Fix · GHSA-49mj-x8jp-qvfc octoprint (PyPI) Fixed in 1.11.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58180
- 2026-10-03 Alias added: GHSA-49mj-x8jp-qvfc
References
Patch 2
Advisory 2
More Octoprint vulnerabilities
- TI-2022-02830 Improper Privilege Management in octoprint/octoprint CVSS 3.1HIGH 8.8
- TI-2022-03320 Failure to Sanitize Special Elements into a Different Plane (Special Element Injection) in octoprint/octoprint CVSS 3.1MEDIUM 6.0
- TI-2022-02664 Unrestricted Upload of File with Dangerous Type in octoprint/octoprint CVSS 3.1MEDIUM 5.4
- TI-2024-18796 OctoPrint XSS via the "Snapshot Test" feature in Classic Webcam plugin settings CVSS 3.1MEDIUM 4.8
- TI-2022-02678 Insufficient Session Expiration in octoprint/octoprint CVSS 3.1MEDIUM 4.4
- TI-2024-21843 OctoPrint Authentication Bypass via X-Forwarded-For Header when autologinLocal is enabled CVSS 3.1CRITICAL 9.4
Sources
- CVE-2025-58180 · CVE Program
- CVE-2025-58180 · NVD
- FIRST EPSS
- GHSA-49mj-x8jp-qvfc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences