Loading advisory.
Loading advisory.
OctoPrint vulnerable to Improper Neutralization of Special Elements Used in a Template Engine
OctoPrint versions up until and including 1.9.2 contain a vulnerability that allows malicious admins to configure a specially crafted GCODE script through the Settings that will allow code execution during rendering of that script.
Published 2023-10-09 15:18 UTC · Modified 2024-10-07 17:03 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.9.3 git commits in https://github.com/OctoPrint/OctoPrint: < d0072cff894509c77e243d6562245ad3079e17db versions 1.3.11, 1.3.12, 1.3.12rc1, 1.3.12rc3, 1.4.0, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0rc4, 1.4.0rc5, 1.4.0rc6, 1.4.1, 1.4.1rc1, 1.4.1rc2, 1.4.1rc3, 1.4.1rc4, 1.4.2, 1.5.0, 1.5.0rc1, 1.5.0rc2 and 38 more | 1.9.3, d0072cff894509c77e243d6562245ad3079e17db | pip install --upgrade 'octoprint>=1.9.3'pip install --upgrade 'octoprint>=d0072cff894509c77e243d6562245ad3079e17db' |
OctoPrint versions up until and including 1.9.2 contain a vulnerability that allows malicious admins to configure a specially crafted GCODE script through the Settings that will allow code execution during rendering of that script.
An attacker might use this to extract data managed by OctoPrint, or manipulate data managed by OctoPrint, as well as execute arbitrary commands with the rights of the OctoPrint process on the server system.
Please note that GCODE files uploaded to be printed are not affected! This vulnerability exclusively affects GCODE Scripts to be executed on connection to the printer, print pause, resume etc, as described in the documentation, to be found under Settings > GCODE Scripts and configurable only by users with the ADMIN permission.
The vulnerability has been patched in version 1.9.3.
OctoPrint administrators are strongly advised to thoroughly vet who has admin access to their installation and to not blindly configure arbitrary GCODE scripts found online or provided to them by third parties.
This vulnerability was discovered and responsibly disclosed to OctoPrint by tianxin Wu (Bearcat), Vulnerability Researcher at Numen Cyber Labs, Singapore.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.008 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.008 | 0.006 | v2026.06.15 |