CVE-2025-58180
OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
Also known as EDB-52476, GHSA-49mj-x8jp-qvfc, PYSEC-2026-1712
Mitigation
- Upgrade octoprint to 1.11.3 or later.
Who should check
- Projects that depend on PyPI package octoprint (< 1.11.3)
- Anyone running OctoPrint < 1.11.3
Vulnerability facts
- Affected
- octoprint < 1.11.3
- Fixed in
- 1.11.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.5 (v4.0, CNA)CVSS:4.0/AV:A/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 5.00% chance of exploitation in 30 days (percentile 93, 2026-11-26)
- CWE
- CWE-78
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58180. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58180.md Affected: octoprint < 1.11.3 Fixed in: 1.11.3 Steps: 1. Search this machine and project for octoprint (PyPI), OctoPrint: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
FAQ
Is CVE-2025-58180 being exploited?
There is no confirmed exploitation: CVE-2025-58180 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 5.00% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58180?
High: CVSS 7.5 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-58180?
octoprint < 1.11.3.
Is there a fix for CVE-2025-58180?
Yes. Fixed in 1.11.3. Upgrade octoprint to 1.11.3 or later.
How do I check if I'm affected by CVE-2025-58180?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.