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

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 28.0%, higher than 98% of CVEs (2026-12-01)
- Published: 2025-09-09T19:22:22.000Z
- Modified: 2026-10-19T17:10:00.173Z
- Also known as: GHSA-49mj-x8jp-qvfc, PYSEC-2026-1712
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- OctoPrint OctoPrint: < 1.11.3; before 1.11.3
- octoprint (PyPI): before 1.11.3

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfc> (mitigation, vendor-advisory, web)
- <https://github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258b> (patch, web)
- <https://github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841> (patch, web)
- <https://github.com/OctoPrint/OctoPrint/releases/tag/1.11.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58180> (advisory)
- <https://github.com/OctoPrint/OctoPrint> (package)
- <https://pypi.org/project/octoprint> (package)
- <https://github.com/advisories/GHSA-49mj-x8jp-qvfc> (advisory)

## Sources

- CVE List: [CVE-2025-58180](https://www.cve.org/CVERecord?id=CVE-2025-58180), CVE Terms of Use, modified 2025-09-10
- GitHub Advisory Database: [GHSA-49mj-x8jp-qvfc](https://github.com/advisories/GHSA-49mj-x8jp-qvfc), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-58180](https://nvd.nist.gov/vuln/detail/CVE-2025-58180), Public domain, modified 2026-10-19
- PyPA Advisory Database: [PYSEC-2026-1712](https://osv.dev/vulnerability/PYSEC-2026-1712), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-58180 · Whole record: https://cve.day/CVE-2025-58180.json · Rebuilt by cve.day 2026-11-25T22:59:04.457Z
