CVE-2025-48067: OctoPrint OctoPrint Vulnerable To Possible File Vulnerability

MODERATE
Advisory Identifier: GHSA-m9jh-jf9h-x3h2
CVSS 5.4
CWE-73
Published
Advisory Summary

CVE-2025-48067 is a MODERATE (CVSS 5.4) octoprint vulnerable to possible file vulnerability (CWE-73: External Control of File Name or Path) affecting OctoPrint libraries in the PyPI ecosystem. The issue involves octoprint vulnerable to possible file extraction via upload endpoints. Remediation is available by upgrading affected packages to version 1.11.2.

CVE-2025-48067 at a Glance

CVE Identifier CVE-2025-48067
GHSA Identifier GHSA-m9jh-jf9h-x3h2
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-73: External Control of File Name or Path
Affected Product OctoPrint
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability Low (A:L)

How to Fix CVE-2025-48067

To remediate this vulnerability, upgrade all affected OctoPrint dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

OctoPrint fixed: 1.11.2
pip install OctoPrint>=1.11.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show OctoPrint

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-48067, inspect your installed packages using pip:

pip show OctoPrint

Analyze the terminal output to locate any version of OctoPrint in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.2), your application is affected.

Note: The pip show OctoPrint command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. In OctoPrint, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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

CVE-2025-48067 Affected OctoPrint Versions

1 component(s)
Fixed Versions:
1.11.2
Product / Package Ecosystem Affected Versions Fixed Version
OctoPrint
PyPI
< 1.11.2
1.11.2

References

Frequently Asked Questions

What is CVE-2025-48067?
CVE-2025-48067 is a security vulnerability in OctoPrint involving OctoPrint vulnerable to possible file extraction via upload endpoints under CWE-73: External Control of File Name or Path.
Which OctoPrint versions are affected?
Affected versions include releases prior to 1.11.2 across affected packages: OctoPrint.
What version fixes CVE-2025-48067?
Upgrading to 1.11.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is OctoPrint affected?
Yes, OctoPrint is affected in releases prior to 1.11.2. Upgrade your dependency to 1.11.2 or later.
What is the CVSS score of CVE-2025-48067?
CVE-2025-48067 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L.
What CWE is associated with CVE-2025-48067?
CVE-2025-48067 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check PyPI dependencies for CVE-2025-48067?
Run the dependency tree command: 'pip show OctoPrint'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m9jh-jf9h-x3h2",
  "modified" : "2026-06-23T17:12:18Z",
  "published" : "2025-06-10T20:13:40Z",
  "aliases" : [ "CVE-2025-48067" ],
  "summary" : "OctoPrint vulnerable to possible file extraction via upload endpoints",
  "details" : "### Impact\n\nOctoPrint 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.\n\nThe 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.\n\n### Patches\n\nThe vulnerability has been patched in version 1.11.2.\n\n### Details\n\nA 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.\n\nThe following endpoints in OctoPrint are affected:\n\n- `/api/files/{local|sdcard}`\n- `/api/languages`\n- `/plugin/backup/restore`\n- `/plugin/pluginmanager/upload_file`\n\nFurther upload endpoints in third party plugins might be affected too.\n\nThe fix removes any internal-only form inputs from incoming requests in the central file upload processor component.\n\n### Credits\n\nThis vulnerability was discovered and responsibly disclosed to OctoPrint by Jacopo Tediosi",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "OctoPrint"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.11.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/OctoPrint/OctoPrint/security/advisories/GHSA-m9jh-jf9h-x3h2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-48067"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/OctoPrint/OctoPrint/commit/9984b20773f5895a432f965b759999b16c57f7d8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/OctoPrint/OctoPrint"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-73" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-06-10T20:13:40Z",
    "nvd_published_at" : "2025-06-10T16:15:41Z"
  }
}