CVE-2023-41047

CVE-2023-41047 is a high-severity security vulnerability in OctoPrint (pip), affecting versions < 1.9.3. It is fixed in 1.9.3.

Summary

Workarounds

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.

Credits

This vulnerability was discovered and responsibly disclosed to OctoPrint by tianxin Wu (Bearcat), Vulnerability Researcher at Numen Cyber Labs, Singapore.

Impact

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.

CVE-2023-41047 has a CVSS score of 6.5 (High). The vector is requires local access, high privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.9.3); upgrading removes the vulnerable code path.

Affected versions

OctoPrint (< 1.9.3)

Security releases

OctoPrint → 1.9.3 (pip)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

The vulnerability has been patched in version 1.9.3.

Frequently Asked Questions

  1. What is CVE-2023-41047? CVE-2023-41047 is a high-severity security vulnerability in OctoPrint (pip), affecting versions < 1.9.3. It is fixed in 1.9.3.
  2. How severe is CVE-2023-41047? CVE-2023-41047 has a CVSS score of 6.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of OctoPrint are affected by CVE-2023-41047? OctoPrint (pip) versions < 1.9.3 is affected.
  4. Is there a fix for CVE-2023-41047? Yes. CVE-2023-41047 is fixed in 1.9.3. Upgrade to this version or later.
  5. Is CVE-2023-41047 exploitable, and should I be worried? Whether CVE-2023-41047 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2023-41047 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2023-41047? Upgrade OctoPrint to 1.9.3 or later.

Other vulnerabilities in OctoPrint

CVE-2026-54134CVE-2026-35163CVE-2026-23892CVE-2025-64187CVE-2025-58180

Stop the waste.
Protect your environment with Kodem.