CVE-2023-41047 json
Improper Neutralization of Special Elements Used in a Template Engine in OctoPrint
published 3y ago modified 4mo ago also GHSA-fwfg-vprh-97ph , PYSEC-2023-195 , EUVD-2023-0182
- cvss
- 6.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi octoprint 1.9.3
- OctoPrint OctoPrint 1.9.3
Is CVE-2023-41047 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-15).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.2 | CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | octoprint | <1.9.3 |
1.9.3 |
Affected products
- OctoPrint OctoPrint
Classification
- Weakness
-
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
-
github.com
/OctoPrint/OctoPrint/commit/d0072cff894509c77e243d6562245ad3079e17db
web, patch
-
github.com
/OctoPrint/OctoPrint/security/advisories/GHSA-fwfg-vprh-97ph
web, vendor-advisory, advisory
-
github.com
/OctoPrint/OctoPrint/releases/tag/1.9.3
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-41047
advisory
-
github.com
/OctoPrint/OctoPrint
package
-
github.com
/pypa/advisory-database/tree/main/vulns/octoprint/PYSEC-2023-195.yaml
web
Sources
- CVE List CVE-2023-41047
- GitHub Advisory GHSA-fwfg-vprh-97ph
- NVD CVE-2023-41047
- OSV PYSEC-2023-195
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.