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

CVE-2023-41047 · Severity: low · CVSS 3.1 · Published 2023-10-09

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.

Technologies: OctoPrint (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2023-41047 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-41047 being exploited in the wild.
How severe is CVE-2023-41047?
Low severity, with a CVSS score of 3.1, published 9 October 2023.
Which products and versions are affected?
OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.9.3, GIT:introduced=0,fixed=d0072cff894509c77e243d6562245ad3079e17db|ECOSYSTEM:introduced=0,fixed=1.9.3.
Is there a fix for CVE-2023-41047?
Yes. OctoPrint (PyPI): upgrade to 1.9.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2023-41047?
Check whether you run OctoPrint (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • OctoPrint (PyPI): upgrade to 1.9.3 or later
    pip install "OctoPrint>=1.9.3"

Affected products

  • OctoPrint (PyPI) ECOSYSTEM:introduced=0,fixed=1.9.3, GIT:introduced=0,fixed=d0072cff894509c77e243d6562245ad3079e17db|ECOSYSTEM:introduced=0,fixed=1.9.3

Identifiers

  • CVE-2023-41047
  • GHSA-fwfg-vprh-97ph
  • PYSEC-2023-195

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.