Skip to main content

OctoPrint CVE-2026-54134

| EUVDEUVD-2026-64044 HIGH
External Control of File Name or Path (CWE-73)
2026-06-23 https://github.com/OctoPrint/OctoPrint GHSA-j4h9-pm27-4rfw PYSEC-2026-2687
7.0
CVSS 4.0 · Vendor: https://github.com/OctoPrint/OctoPrint
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Access OctoPrint web interface with FILE_UPLOAD account
  2. Delivery
    Craft upload request with reserved field as URL query parameter
  3. Exploit
    Specify target host file path in injected field
  4. Execution
    OctoPrint moves host file into upload folder
  5. Impact
    Download exfiltrated file via file API

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires a valid OctoPrint user account with the FILE_UPLOAD permission explicitly granted - this is not a default permission for anonymous visitors or read-only users and must be administratively assigned. The attacker must be able to reach OctoPrint's HTTP interface over the network (CVSS 4.0 AV:A indicates adjacent network access, consistent with OctoPrint's typical LAN/local-network deployment). No administrator-level access, special plugin configuration, or non-default OctoPrint settings are required beyond possession of the FILE_UPLOAD permission. Limiting factors are: the permission requirement restricts the attacker population to authenticated users with explicitly granted upload rights; OctoPrint is rarely exposed directly to the internet; and exfiltration scope is bounded to files readable by the OctoPrint process account. The vulnerability does not depend on any specific 3D printer being connected or any particular OctoPrint plugin being installed.

Impact

The vendor-assigned CVSS 4.0 score of 7.0 (AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N) is internally consistent and well-calibrated for this vulnerability class. The adjacent network vector (AV:A) appropriately reflects OctoPrint's typical local-network deployment rather than internet-facing exposure, substantially narrowing the realistic attacker pool. The dominant risk signal is VC:H - confidentiality impact is high because the attacker can exfiltrate any file readable by the OctoPrint process, including config files containing API keys and credentials. Integrity impact is low (VI:L, file relocation rather than modification), and the vendor assessed no direct availability impact in the CVSS vector, though the description notes that removing runtime files could degrade the host after a server restart - a secondary, conditional risk not captured in VA:N. No EPSS data was provided in the source intelligence, and the vulnerability is not listed in CISA KEV, placing this in the patch-prioritization rather than incident-response tier for most operators. The critical real-world limiter is the FILE_UPLOAD permission prerequisite: this permission is explicitly granted and not default for anonymous or read-only accounts, meaning the realistic attacker is a compromised or malicious internal user rather than an external opportunist. Because this is an incomplete-fix bypass of a previously published vulnerability with a detailed public advisory, researcher and attacker attention is elevated and a proof-of-concept may emerge; upgrade timelines should be treated as urgent for any deployment where FILE_UPLOAD permissions are granted to semi-trusted or external users.

Exploit ScenarioDerived

An attacker holding a valid OctoPrint account with FILE_UPLOAD permission submits a crafted POST request to /api/files/local, appending the Tornado-reserved internal field as a URL query parameter pointing to a sensitive host path such as ~/.octoprint/config.yaml. OctoPrint's Flask layer accepts the injected field, treats the targeted file as the upload payload, and moves it into the upload folder; the attacker then downloads the exfiltrated file via the standard file retrieval API. No public exploit code has been identified at time of analysis, but the technique is mechanically straightforward given the level of technical detail published in the advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 21, 2026

File exfiltration via upload endpoint parameter injection in OctoPrint 1.11.7 and earlier (plus 2.0.0rc1 and 2.0.0rc2) allows an authenticated low-privilege attacker with FILE_UPLOAD permission to relocate arbitrary host files into OctoPrint's upload directory for subsequent download, exposing secrets stored in OctoPrint's config and potentially disrupting host availability by removing runtime files. This is a confirmed bypass of the incomplete fix for CVE-2025-48067: the prior patch blocked multipart field injection but left query parameter and Tornado/Werkzeug parser-differential smuggling paths unaddressed. No public exploit code has been identified at time of analysis; vendor-released patches are available as OctoPrint 1.11.8 and 2.0.0rc3.

Earlier versions of this analysis (1)
v1 Jun 23, 2026 - 18:33

Arbitrary file exfiltration in OctoPrint versions through 1.11.7 and 2.0.0rc1-rc2 allows authenticated users with the FILE_UPLOAD permission to move any host file readable by the OctoPrint process into the upload folder, where it can then be downloaded. This is an incomplete-fix recurrence of CVE-2025-48067; reserved internal form fields can still be smuggled to Flask via query parameters or Tornado/Werkzeug parser differentials. No public exploit identified at time of analysis, and patches are available in 1.11.8 and 2.0.0rc3.

RemediationAI

Upgrade OctoPrint to version 1.11.8 (stable branch) or 2.0.0rc3 (pre-release branch) immediately; both are vendor-released patched versions per advisory GHSA-j4h9-pm27-4rfw at https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-j4h9-pm27-4rfw. The fix rejects any request carrying reserved internal Tornado fields, aligns Tornado's HTTP request parsing with Werkzeug's to eliminate parser-differential smuggling, and re-validates rewritten requests before forwarding to Flask. If immediate upgrade is not feasible, revoke FILE_UPLOAD permission from all non-essential accounts as a compensating control - this removes the prerequisite for exploitation but disables file upload functionality for those accounts. Additionally, restrict network access to OctoPrint's upload endpoints (/api/files/, /api/languages, /plugin/backup/restore, /plugin/pluginmanager/upload_file) at the perimeter or via reverse proxy ACLs, with the trade-off that this disables upload functionality for blocked network segments. Placing OctoPrint behind a VPN so that FILE_UPLOAD accounts are issued only to fully trusted users is the most operationally neutral interim control.

Affected VersionsENISA

OctoPrint < 1.11.8
OctoPrint 2.0.0rc1, < 2.0.0rc3

Affected Packages

pypi octoprint fix: 1.11.8, 2.0.0rc3
euvd octoprint_2_0_0rc1 fix: 2.0.0rc3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OctoPrint (pkg:pip/octoprint) is a Python web application that layers a custom Tornado upload proxy in front of a Flask/Werkzeug backend. The Tornado handler streams incoming uploads to temporary disk files and rewrites the HTTP request, injecting reserved internal form fields that tell Flask where to find the uploaded data. CWE-73 (External Control of File Name or Path) is the root cause class: these reserved fields were never meant to be client-controlled. The CVE-2025-48067 fix stripped such fields from multipart bodies, but two bypass channels remained - first, the fields could be submitted as URL query parameters entirely outside the multipart body, and second, Tornado and Werkzeug parse certain raw HTTP constructs differently ('parser differentials'), so a request that appeared clean to the Tornado handler still exposed the injected fields to Flask. Affected endpoints include /api/files/{local|sdcard}, /api/languages, /plugin/backup/restore, and /plugin/pluginmanager/upload_file, with potential exposure in third-party plugin upload endpoints as well.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/OctoPrint/OctoPrint) PRIMARY 7.0 HIGH
CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.3 MEDIUM

AV:A reflects OctoPrint's local-network deployment; PR:L captures the required FILE_UPLOAD permission; C:H for arbitrary readable-file exfiltration; I:L for file relocation; A:N consistent with vendor CVSS 4.0 VA:N.

3.1 AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
4.0 AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/OctoPrint/OctoPrint).

CVSS VectorVendor: https://github.com/OctoPrint/OctoPrint

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Aug 21, 2026 - 19:29 vuln.today
v2 - CVSS changed
CVSS changed
Aug 21, 2026 - 19:22 NVD
7.0 (HIGH)

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

OctoPrint instances with authenticated users can exploit a parameter injection vulnerability to extract sensitive configuration data-including API keys and secrets-and potentially remove critical runtime files, impacting both information security and operational continuity. The vulnerability affects production deployments (1.11.7 and earlier) and pre-release versions, requiring immediate patching to prevent unauthorized credential exposure and system disruption.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
dominant 3D printer management platform, large maker and prosumer base
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact
High

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy