Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. OctoPrint
  4. ›
  5. CVE-2025-58180

CVE-2025-58180: OctoPrint is Vulnerable to RCE Attacks via Unsanitized Filename in File Upload

September 9, 2025 (updated September 18, 2025)

OctoPrint versions up until and including 1.11.2 contain a vulnerability that allows an authenticated attacker to upload a file under a specially crafted filename that will allow arbitrary command execution if said filename becomes included in a command defined in a system event handler and said event gets triggered.

If no event handlers executing system commands with uploaded filenames as parameters have been configured, this vulnerability does not have an impact.

References

  • github.com/OctoPrint/OctoPrint
  • github.com/OctoPrint/OctoPrint/commit/be4201ef58d9a7c03593252398c16eada90a258b
  • github.com/OctoPrint/OctoPrint/commit/c3a940962f4658a8e035a00388781b1cbd768841
  • github.com/OctoPrint/OctoPrint/releases/tag/1.11.3
  • github.com/OctoPrint/OctoPrint/security/advisories/GHSA-49mj-x8jp-qvfc
  • github.com/advisories/GHSA-49mj-x8jp-qvfc
  • nvd.nist.gov/vuln/detail/CVE-2025-58180

Code Behaviors & Features

Detect and mitigate CVE-2025-58180 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.11.3

Fixed versions

  • 1.11.3

Solution

Upgrade to version 1.11.3 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/OctoPrint/CVE-2025-58180.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 18 Oct 2025 00:19:10 +0000.