OS Command Injection in OctoPrint - CVE-2025-58180
Published: September 9, 2025 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows an authenticated adjacent-network attacker to execute arbitrary operating system commands on the OctoPrint host.
The vulnerability exists due to insufficient sanitization of uploaded filenames in OctoPrint when configured system event handlers include those filenames in executed commands. An authenticated adjacent-network attacker can upload a file with a specially crafted filename and achieve command execution when the corresponding event is triggered.