# CVE-2023-41047: Improper Neutralization of Special Elements Used in a Template Engine in OctoPrint

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2023-10-09T15:18:06.331Z
- Modified: 2026-06-17T06:20:17.070Z
- Also known as: GHSA-fwfg-vprh-97ph, PYSEC-2023-195
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- OctoPrint OctoPrint: < 1.9.3; before 1.9.3
- octoprint (PyPI): before 1.9.3; before d0072cff894509c77e243d6562245ad3079e17db

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:A/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-fwfg-vprh-97ph> (advisory, vendor-advisory, web)
- <https://github.com/OctoPrint/OctoPrint/commit/d0072cff894509c77e243d6562245ad3079e17db> (fix, patch, web)
- <https://github.com/OctoPrint/OctoPrint/releases/tag/1.9.3> (release-notes, web)
- <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)

## Sources

- CVE List: [CVE-2023-41047](https://www.cve.org/CVERecord?id=CVE-2023-41047), CVE Terms of Use, modified 2024-09-19
- GitHub Advisory Database: [GHSA-fwfg-vprh-97ph](https://github.com/advisories/GHSA-fwfg-vprh-97ph), CC-BY-4.0, modified 2024-10-07
- NVD: [CVE-2023-41047](https://nvd.nist.gov/vuln/detail/CVE-2023-41047), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-195](https://osv.dev/vulnerability/PYSEC-2023-195), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-41047 · Whole record: https://cve.day/CVE-2023-41047.json · Rebuilt by cve.day 2026-11-25T22:58:28.539Z
