{"id":"CVE-2023-41047","published":"2023-10-09T15:18:06Z","modified":"2024-09-19T16:47:17Z","title":"Improper Neutralization of Special Elements Used in a Template Engine in OctoPrint","vendor":"OctoPrint","product":"OctoPrint","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00752,"percentile":0.5121,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-fwfg-vprh-97ph","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OctoPrint/OctoPrint/commit/d0072cff894509c77e243d6562245ad3079e17db","tags":["x_refsource_MISC"]},{"url":"https://github.com/OctoPrint/OctoPrint/releases/tag/1.9.3","tags":["x_refsource_MISC"]}],"priority":{"score":14.6,"factors":[{"name":"EPSS percentile","points":10.24},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"octoprint","affectedVersions":[{"vendor":"OctoPrint","product":"OctoPrint","versions":["< 1.9.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-09-19T16:43:52.751548Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"OctoPrint","vulnerableRanges":["<1.9.3"],"patched":["1.9.3"],"from":["GHSA-fwfg-vprh-97ph","PYSEC-2023-195"],"provenance":"source"}],"summary":{"text":"The flaw is an improper neutralization of special elements in a template engine within OctoPrint, the web interface for 3D printers, affecting versions up to and including 1.9.2. An attacker who is a malicious administrator can use a specially crafted GCODE script to execute code when that script is rendered, potentially reading or modifying data managed by OctoPrint and running arbitrary commands as the OctoPrint process on the server, with exploitation requiring adjacent network access, high privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:56Z"},"euvd":{"id":"EUVD-2023-0182","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-2930","published":"2022-08-22","fixed":"1.8.3","kev":false},{"cve":"CVE-2022-3068","published":"2022-09-21","fixed":"1.8.3","kev":false},{"cve":"CVE-2022-3607","published":"2022-10-19","fixed":"1.8.3","kev":false},{"cve":"CVE-2023-41047","published":"2023-10-09","fixed":"1.9.3","kev":false},{"cve":"CVE-2024-23637","published":"2024-01-31","fixed":"1.10.0rc1","kev":false,"link":{"from":"CVE-2023-41047","to":"CVE-2024-23637","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:OctoPrint","fromFixed":"1.9.3","toFixed":"1.10.0rc1","daysApart":114}]}},{"cve":"CVE-2024-28237","published":"2024-03-18","fixed":"1.10.0","kev":false},{"cve":"CVE-2024-32977","published":"2024-05-14","fixed":"1.10.1","kev":false}],"package":"PyPI:OctoPrint"}}