CVE-2023-41047 in Octoprint
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 OctoPr...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, high privileges required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Octoprint | Octoprint | < 1.9.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2023-41047 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-343987-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| Published | 2023-10-09 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-1336: CWE-1336
Analysis AI-written, not human-reviewed
OctoPrint versions up to 1.9.2 are vulnerable to a code execution flaw via a specially crafted GCODE script, allowing malicious admins to extract, manipulate data, and execute arbitrary commands.
The vulnerability arises from improper validation of GCODE scripts, enabling an attacker with administrative privileges to inject malicious code that executes during the rendering of the script.
Questions
What is CVE-2023-41047?
OctoPrint versions up to 1.9.2 are vulnerable to a code execution flaw via a specially crafted GCODE script, allowing malicious admins to extract, manipulate data, and execute arbitrary commands.
What is the CVSS score for CVE-2023-41047?
CVE-2023-41047 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.8%.
Is CVE-2023-41047 actively exploited?
No confirmed active exploitation of CVE-2023-41047 as of 2026-09-25.
How do I remediate CVE-2023-41047?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2023-41047?
CVE-2023-41047 affects Octoprint Octoprint.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Octoprint","product":"Octoprint","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.