# CVE-2023-41047: OctoPrint vulnerable to Improper Neutralization of Special Elements Used in a Template Engine

Source: https://junglewise.ai/threats/cve-2023-41047-octoprint-vulnerable-to-improper-neutralization-of-special  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-10-09  
License: CC BY 4.0 with a link back

CVE-2023-41047 · Severity: low · CVSS 3.1 · Published 2023-10-09

OctoPrint is a web interface for 3D printers. OctoPrint versions up until and including 1.9.2 contain a vulnerability that allows malicious admins to configure a specially crafted GCODE script 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. OctoPrint versions from 1.9.3 onward have been patched. Administrators of OctoPrint instances are advised to make sure they can trust all other administrators on their instance and to also not blindly configure arbitrary GCODE scripts found online or provided to them by third parties.

Technologies: [OctoPrint (PyPI)](https://junglewise.ai/threats/technologies/octoprint). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-41047 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-41047 being exploited in the wild.

**How severe is CVE-2023-41047?** Low severity, with a CVSS score of 3.1, published 9 October 2023.

**Which products and versions are affected?** OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.9.3, GIT:introduced=0,fixed=d0072cff894509c77e243d6562245ad3079e17db|ECOSYSTEM:introduced=0,fixed=1.9.3.

**Is there a fix for CVE-2023-41047?** Yes. OctoPrint (PyPI): upgrade to 1.9.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-41047?** Check whether you run OctoPrint (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- OctoPrint (PyPI): upgrade to 1.9.3 or later

  ```sh
  pip install "OctoPrint>=1.9.3"
  ```


## Affected products

- OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.9.3, GIT:introduced=0,fixed=d0072cff894509c77e243d6562245ad3079e17db|ECOSYSTEM:introduced=0,fixed=1.9.3

## Identifiers

- CVE-2023-41047
- GHSA-fwfg-vprh-97ph
- PYSEC-2023-195

## Related threats

- [OctoPrint stored XSS in connection parameters](https://junglewise.ai/threats/cve-2026-123364-octoprint-provides-a-web-interface-for-controlling-consumer-3d)
- [OctoPrint file exfiltration via query parameters in upload endpoints](https://junglewise.ai/threats/cve-2026-54134-octoprint-file-exfiltration-via-query-parameters-in-upload)
- [OctoPrint XSS in Suppressed Command Notifications](https://junglewise.ai/threats/cve-2026-35163-octoprint-xss-in-suppressed-command-notifications)
- [PYSEC-2026-1716 - OctoPrint has Timing Side-Channel Vulnerability in API Key Authentication](https://junglewise.ai/threats/cve-2026-23892-octoprint-has-timing-side-channel-vulnerability-in-api-key)
- [PYSEC-2026-1714 - OctoPrint vulnerable to XSS in Action Commands Notification and Prompt](https://junglewise.ai/threats/cve-2025-64187-octoprint-vulnerable-to-xss-in-action-commands-notification-and)
