CVE-2026-54134
JSON

7.0high

OctoPrint: File exfiltration possible via query parameters on upload endpoints

Severity
7.0high CVSS:4.0 by GitHub_M
Exploit likelihood
0.21% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j4h9-pm27-4rfwPYSEC-2026-2687

Description

OctoPrint provides a web interface for controlling consumer 3D printers. Prior to 1.11.8 and 2.0.0rc3, OctoPrint's custom Tornado upload handler and Flask with Werkzeug parse request parameters differently, allowing an attacker with FILE_UPLOAD permission to inject reserved internal upload fields through query parameters or parser differentials despite the earlier GHSA-m9jh-jf9h-x3h2 fix. The affected endpoints are /api/files/{local|sdcard}, /api/languages, /plugin/backup/restore, and /plugin/pluginmanager/upload_file. An attacker can make OctoPrint treat an arbitrary host file as a temporary upload, move it into a downloadable upload directory, disclose configuration secrets or other readable files, and remove runtime files in a way that can affect a later restart. This issue is fixed in versions 1.11.8 and 2.0.0rc3.

Affected

Product or packageVersionsReported by
OctoPrint OctoPrint< 1.11.8, >= 2.0.0rc1, < 2.0.0rc3CVE List
octoprint (PyPI)before 1.11.8, from 2.0.0rc1 before 2.0.0rc3GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M7.0high CVSS:4.0CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Classification

CWE-73CWE-436

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

OctoPrint provides a web interface for controlling consumer 3D printers. Prior to 1.11.8 and 2.0.0rc3, OctoPrint's custom Tornado upload handler and Flask with Werkzeug parse request parameters differently, allowing an attacker with FILE_UPLOAD permission to inject reserved internal upload fields through query parameters or parser differentials despite the earlier GHSA-m9jh-jf9h-x3h2 fix. The affected endpoints are /api/files/{local|sdcard}, /api/languages, /plugin/backup/restore, and /plugin/pluginmanager/upload_file. An attacker can make OctoPrint treat an arbitrary host file as a temporary upload, move it into a downloadable upload directory, disclose configuration secrets or other readable files, and remove runtime files in a way that can affect a later restart. This issue is fixed in versions 1.11.8 and 2.0.0rc3.

GitHub Advisory Database
Impact

OctoPrint versions up until and including 1.11.7 as well as 2.0.0rc1 and 2.0.0rc2 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. This vulnerability was already reported as GHSA-m9jh-jf9h-x3h2/CVE-2025-48067 but the fix provided in OctoPrint 1.11.2 turned out to be incomplete.

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 after an attempted server restart. 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.8 and 2.0.0rc3.

Details

OctoPrint's web application is implemented in Flask, but uploads are first intercepted by a custom upload handler built on Tornado that sits in front of it. The handler streams the upload to a temporary file on disk - so files larger than the available memory can be uploaded - and rewrites the request, adding internal form fields that tell Flask where to find that temporary file.

These fields are reserved and meant to be set only by the upload handler, never by the client. The previous fix from GHSA-m9jh-jf9h-x3h2/CVE-2025-48067 stripped them from the request received from the client when they were sent as multipart form fields, yet they could still reach Flask through other channels: as plain query parameters, or - since the Tornado handler and Flask did not parse requests identically - smuggled in via several "parser differentials" that looked harmless to the handler while Flask still saw the injected fields. Any of these let an attacker make OctoPrint treat an arbitrary file on the host as a freshly uploaded one and move it into the 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 rejects requests carrying any of the reserved fields, aligns the Tornado handler's request parsing with Flask's (Werkzeug) to avoid any differential parsing, and re-validates the request rewritten by Tornado before forwarding it to Flask.

Credits

This vulnerability was discovered and responsibly disclosed to OctoPrint by Koh Jun Sheng and Jacopo Tediosi.

Timeline

2026-06-04: Report received 2026-06-04: Report acknowledged 2026-06-08: Report verified 2026-06-17: Fix ready for 1.11.x 2026-06-22: Fix ported to 2.0.0 2026-06-23: Fix released with 1.11.8 and 2.0.0rc3

NVD (es)

OctoPrint proporciona una interfaz web para controlar impresoras 3D de consumo. Antes de las versiones 1.11.8 y 2.0.0rc3, el gestor de carga personalizado de Tornado de OctoPrint y Flask con Werkzeug analizan los parámetros de solicitud de manera diferente, permitiendo a un atacante con permiso FILE_UPLOAD inyectar campos de carga internos reservados a través de parámetros de consulta o diferenciales del analizador a pesar de la corrección anterior GHSA-m9jh-jf9h-x3h2. Los endpoints afectados son /API/files/{local|sdcard}, /API/languages, /plugin/backup/restore y /plugin/pluginmanager/upload_file. Un atacante puede hacer que OctoPrint trate un archivo de host arbitrario como una carga temporal, moverlo a un directorio de carga descargable, divulgar secretos de configuración u otros archivos legibles, y eliminar archivos de tiempo de ejecución de una manera que puede afectar un reinicio posterior. Este problema está solucionado en las versiones 1.11.8 y 2.0.0rc3.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54134 changed 2026-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-j4h9-pm27-4rfw changed 2026-08-21CC-BY-4.0
NVDCVE-2026-54134 changed 2026-10-14Public domain
PyPA Advisory DatabasePYSEC-2026-2687 changed 2026-07-13CC-BY-4.0