Code injection in OctoPrint



Published: 2023-10-12
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-41047
CWE-ID CWE-94
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
OctoPrint
Web applications / Modules and components for CMS

Vendor octoprint.org

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Code Injection

EUVDB-ID: #VU81950

Risk: Low

CVSSv3.1: 4.3 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2023-41047

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

The vulnerability allows a remote user to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation when parsing GCODE scripts. A remote administrator can create a specially crafted GCODE script and execute arbitrary code within the application.


Mitigation

Install updates from vendor's website.

Vulnerable software versions

OctoPrint: 1.0.0 - 1.9.2

External links

http://github.com/OctoPrint/OctoPrint/commit/d0072cff894509c77e243d6562245ad3079e17db
http://github.com/OctoPrint/OctoPrint/releases/tag/1.9.3
http://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-fwfg-vprh-97ph


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###