CVE-2023-41047
MEDIUM 6.5CVSS 3.1OctoPrint vulnerable to Improper Neutralization of Special Elements Used in a Template Engine
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.
- Published
- 9 Oct 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1336
- Also known as
- GHSA-fwfg-vprh-97phPYSEC-2023-195
- Sources
- NVDJSONOSV GHSA-fwfg-vprh-97phJSONOSV PYSEC-2023-195JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | octoprint | octoprintcpe:2.3:a:octoprint:octoprint:*:*:*:*:*:*:*:* |
< 1.9.3 | 1.9.3 |
| OSV | PyPI | octoprint | < 1.9.3 | 1.9.3 |
References
- https://github.com/OctoPrint/OctoPrint/commit/d0072cff894509c77e243d6562245ad3079e17db · Patch, WEB, FIX
- https://github.com/OctoPrint/OctoPrint/releases/tag/1.9.3 · Release Notes, WEB
- https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-fwfg-vprh-97ph · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-41047 · ADVISORY
- https://github.com/OctoPrint/OctoPrint · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2023-195.yaml · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Oct 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Oct 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Oct 2023)