Loading advisory.
Loading advisory.
OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload
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…
Published 2025-09-09 19:22 UTC · Modified 2026-07-07 17:57 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| octoprint | PyPI | < 1.11.3 versions 1.10.0, 1.10.0rc1, 1.10.0rc2, 1.10.0rc3, 1.10.0rc4, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.0rc1, 1.11.0rc2, 1.11.0rc3, 1.11.0rc4, 1.11.0rc5, 1.11.0rc6, 1.11.0rc7, 1.11.1, 1.11.2, 1.3.11, 1.3.12 and 57 more | 1.11.3 | pip install --upgrade 'octoprint>=1.11.3' |
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 will be patched in version 1.11.3.
Until the patch has been applied, OctoPrint administrators who have event handlers configured that include any kind of filename based placeholders (i.e. {__filename}, {__filepath}, {filename}, {path}, etc -- refer to the events documentation for a full list) 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 (e.g. those that contain a ; in their name followed by a command).
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.
This vulnerability was discovered and responsibly disclosed to OctoPrint by @prabhatverma47.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.261 on 2026-11-24 to 0.054 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.261 | first score | v2026.06.15 |
| 2026-11-26 | 0.050 | 0.261 | v2026.06.15 |
| 2026-11-30 | 0.054 | 0.050 | v2026.06.15 |