Description
The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../').
Published: 2026-03-27
Score: 8.8 High
EPSS: 31.4% Moderate
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a path traversal flaw (CWE-22) in the file upload endpoint that fails to sanitize the 'filename' parameter from multipart form data. This allows an attacker to write files to arbitrary locations on the host filesystem. By creating or modifying system files, an attacker could inject malicious code or alter configuration files, violating the integrity principle and potentially enabling arbitrary code execution and full system compromise.

Affected Systems

The vulnerability affects the Langflow product by langflow-ai. Any deployment exposing the POST /api/v2/files endpoint without proper filename sanitization is susceptible. No specific version numbers were supplied, so the impact may apply to all currently supported releases.

Risk and Exploitability

The CVSS score of 8.8 classifies the issue as high severity. The EPSS score of 31% indicates a moderate-to-high likelihood of exploitation, and the absence from the KEV catalog does not preclude exploitation. A crafted multipart/form-data request can target the upload endpoint; authentication requirements are not specified in the CVE data, and the lack of filename sanitization could allow an attacker with access to the endpoint to write files to arbitrary locations. This capability could enable exfiltration, planting of malicious files, or full system compromise.

Generated by OpenCVE AI on August 2, 2026 at 02:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check for and apply any vendor-provided patch or update for Langflow.
  • If a patch is not immediately available, configure the application to reject filenames containing traversal sequences such as "../".
  • Restrict the upload endpoint to write only within a dedicated, non‑critical directory and enforce strict permissions.
  • Implement server‑side logging to detect unauthorized file write attempts and alert administrators.
  • Consider disabling the file upload feature if it is not essential to the deployment.

Generated by OpenCVE AI on August 2, 2026 at 02:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 30 Mar 2026 08:15:00 +0000

Type Values Removed Values Added
First Time appeared Langflow
Langflow langflow
Vendors & Products Langflow
Langflow langflow

Fri, 27 Mar 2026 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 27 Mar 2026 15:15:00 +0000

Type Values Removed Values Added
Description The 'POST /api/v2/files' endpoint does not sanitize the 'filename' parameter from the multipart form data, allowing an attacker to write files to arbitrary locations on the filesystem using path traversal sequences ('../').
Title Langflow - Path Traversal Arbitrary File Write via upload_user_file
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Langflow Langflow
cve-icon MITRE

Status: PUBLISHED

Assigner: tenable

Published:

Updated: 2026-03-27T15:11:42.918Z

Reserved: 2026-03-27T14:51:30.515Z

Link: CVE-2026-5027

cve-icon Vulnrichment

Updated: 2026-03-27T15:11:27.738Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-27T15:17:04.743

Modified: 2026-06-17T10:58:17.977

Link: CVE-2026-5027

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T02:30:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')