OctoPrint
OctoPrint: File exfiltration possible via query parameters on upload endpoints
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.11.8
- >= 2.0.0rc1, < 2.0.0rc3
Fixed in 1.11.8, 2.0.0rc3
Mitigation
Upgrade OctoPrint to 1.11.8 or 2.0.0rc3 or later.
References
- Vendor advisory github.com/OctoPrint/OctoPrint/security/adviso…
- Patch github.com/OctoPrint/OctoPrint/commit/579148be…
- Patch github.com/OctoPrint/OctoPrint/commit/8e334819…
2 more
- Release notes github.com/OctoPrint/OctoPrint/releases/tag/1.…
- Release notes github.com/OctoPrint/OctoPrint/releases/tag/2.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.