Medium

OctoPrint vulnerable to possible file extraction via upload endpoints

  • Disclosed: 10.06.2025
  • Updated: 11.10.2026 13:19

Impact

OctoPrint versions up until and including 1.11.1 contain a vulnerability that allows an attacker with the FILE_UPLOAD permission to exfiltrate files from the host that OctoPrint has read access to, by moving them into the upload folder where they then can be downloaded from.

The primary risk lies in the potential exfiltration of secrets stored inside OctoPrint's config, or further system files. By removing important runtime files, this could also be used to impact the availability of the host. Given that the attacker requires a user account with file upload permissions, the actual impact of this should however hopefully be minimal in most cases.

Patches

The vulnerability has been patched in version 1.11.2.

Details

A specially crafted HTTP Request to an affected upload endpoint that contains some form inputs only supposed to be used internally can be used to make OctoPrint move a file that it thinks is a freshly uploaded temporary one into its upload folder.

The following endpoints in OctoPrint are affected:

  • /api/files/{local|sdcard}
  • /api/languages
  • /plugin/backup/restore
  • /plugin/pluginmanager/upload_file

Further upload endpoints in third party plugins might be affected too.

The fix removes any internal-only form inputs from incoming requests in the central file upload processor component.

Credits

This vulnerability was discovered and responsibly disclosed to OctoPrint by Jacopo Tediosi

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) octoprint < 1.11.2 1.11.2

References

CVSS score 5.4/10
CVSS vector
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L
Weakness (CWE)
CWE-73
Platform
Python (PyPI)
Package
octoprint
Disclosed
10.06.2025
Updated
11.10.2026 13:19

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1715 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-m9jh-jf9h-x3h2 - CC BY 4.0

Vulnerability history: octoprint

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (24) in the archive
Total entries
24
First → latest
05.2021 06.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 8
  • Medium 13
  • Low 2

Disclosures per year

  1. 2021: 2
  2. 2022: 8
  3. 2023: 1
  4. 2024: 5
  5. 2025: 5
  6. 2026: 3
Severity:
  1. High CVE-2026-54134 < 1.11.8, >= 2.0.0rc1, < 2.0.0rc3 1.11.8, 2.0.0rc3
  2. OctoPrint vulnerable to possible file extraction via upload endpoints this entry
    Medium · 5.4 CVE-2025-48067 < 1.11.2 1.11.2
  3. High · 7.5 CVE-2022-1432 < 1.8.0 1.8.0
  4. High · 7.5 CVE-2022-1430 < 1.8.0 1.8.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.