CVE-2023-41047: OctoPrint - Command Injection
- Cve: CVE-2023-41047
- Name: OctoPrint - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the server, potentially leading to data theft, manipulation, or full system compromise.
- Remediation: Update to version 1.9.3 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs admin privileges on OctoPrint instance
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00587
- Epss percentile: 0.48771
- Assignee: [email protected]
- Published at: 2023-10-09T16:15:10Z
- Age in days: 1142
- Modified at: 2026-06-17T06:20:17Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-41047
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| octoprint:octoprint | < 1.9.3 | no | nvd | /v1/products/octoprint/octoprint |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| OctoPrint/OctoPrint | commit, package, releases, security_advisory | yes | /v1/repositories/OctoPrint/OctoPrint |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 1256
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports