Read the docs
TI-2025-35988 Aliases CVE-2025-58180GHSA-49mj-x8jp-qvfc

OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload

Priority MEDIUM 55CWE-78Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.22139 97th percentileScored 2026-11-07
Fix Fixed OctoPrint (OctoPrint): 1.11.3octoprint (PyPI): 1.11.3

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

VendorProductAffected versionsFixed inStatusSource
OctoPrintOctoPrintbefore 1.11.31.11.3Patch availableCNA
—octoprint (PyPI)before 1.11.31.11.3Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:*before 1.11.3VulnerableOctoPrint
  • cpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:* Versions before 1.11.3 Vulnerable ·OctoPrint

Remediation

  • Fix · CNA OctoPrint (OctoPrint) Fixed in 1.11.3
  • Fix · GHSA-49mj-x8jp-qvfc octoprint (PyPI) Fixed in 1.11.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-58180
  2. 2026-10-03 Alias added: GHSA-49mj-x8jp-qvfc

References

  • 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
See all 22 →

Sources