# CVE-2025-58180: OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 5.00% (percentile 93, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** EDB-52476, GHSA-49mj-x8jp-qvfc, PYSEC-2026-1712
- **Published:** 2025-09-09T19:22:22.000Z
- **Modified:** 2026-10-19T17:10:00.173Z

## Who should check

- Projects that depend on PyPI package octoprint (\< 1.11.3)
- Anyone running OctoPrint \< 1.11.3

## 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

- PyPI `octoprint`: affected \< 1.11.3; fixed 1.11.3 (osv)
- OctoPrint: \< 1.11.3 (cvelist)

## Mitigation

- Upgrade octoprint to 1.11.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfc>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-58180>
- vendor: <https://github.com/advisories/GHSA-49mj-x8jp-qvfc>
- patch: <https://github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258b>
- patch: <https://github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841>
- exploit: <https://www.exploit-db.com/exploits/52476>
- other: <https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.3>
- other: <https://github.com/OctoPrint/OctoPrint>
- other: <https://pypi.org/project/octoprint>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-58180>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-49mj-x8jp-qvfc> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1712> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/52476>

HTML: <https://flawdb.com/CVE-2025-58180> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-58180>
