CVE-2023-41047
Improper Neutralization of Special Elements Used in a Template Engine in OctoPrint
Also known as GHSA-fwfg-vprh-97ph, PYSEC-2023-195
Mitigation
- Upgrade octoprint to 1.9.3 or later.
Who should check
- Projects that depend on PyPI package octoprint (< 1.9.3)
- Anyone running OctoPrint < 1.9.3
Vulnerability facts
- Affected
- octoprint < 1.9.3
- Fixed in
- 1.9.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.2 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Adjacent network
- Attack complexity: Low
- Privileges required: High
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- EPSS
- 0.75% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- CWE
- CWE-1336
- Modified
Description
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-41047. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-41047.md Affected: octoprint < 1.9.3 Fixed in: 1.9.3 Steps: 1. Search this machine and project for octoprint (PyPI), OctoPrint: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-41047 being exploited?
There is no confirmed exploitation: CVE-2023-41047 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-41047?
Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2023-41047?
octoprint < 1.9.3.
Is there a fix for CVE-2023-41047?
Yes. Fixed in 1.9.3. Upgrade octoprint to 1.9.3 or later.
How do I check if I'm affected by CVE-2023-41047?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.