CVE-2025-58180
Python vulnerability analysis and mitigation

Overview

CVE-2025-58180 affects OctoPrint, a web interface for controlling consumer 3D printers, versions up to and including 1.11.2. The vulnerability allows an authenticated attacker to upload a file with a specially crafted filename that enables arbitrary command execution when the filename is included in a system event handler command and triggered. The vulnerability was discovered by prabhatverma47 and patched in version 1.11.3, released on September 9, 2025 (GitHub Advisory).

Technical details

The vulnerability is classified as a High severity issue with a CVSS v4.0 base score of 7.5. It is categorized as CWE-78 (Improper Neutralization of Special Elements used in an OS Command). The attack requires adjacent network access, low attack complexity, and low privileges. The vulnerability impacts system confidentiality, integrity, and availability with high severity when successfully exploited (GitHub Advisory).

Impact

When successfully exploited, the vulnerability allows arbitrary command execution on the system running OctoPrint. However, the impact is limited to instances where event handlers executing system commands with uploaded filenames as parameters have been configured. The vulnerability affects the system's confidentiality, integrity, and availability with high severity ratings (GitHub Advisory).

Mitigation and workarounds

Several mitigation options are available: 1) Upgrade to OctoPrint version 1.11.3 or later which patches the vulnerability. 2) Disable event handlers that include filename-based placeholders by setting their 'enabled' property to 'False' or unchecking the 'Enabled' checkbox in the GUI Event Manager. 3) Set 'feature.enforceReallyUniversalFilenames' to 'true' in config.yaml and restart OctoPrint, then remove any suspicious files. Additionally, administrators should avoid exposing OctoPrint on hostile networks like the public internet and carefully vet instance access (GitHub Release, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66470MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-66469MEDIUM6.1
  • PythonPython
  • nicegui
NoYesDec 09, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 09, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management