Description
Langflow is a tool for building and deploying AI-powered agents and workflows. Versions 1.2.0 through 1.8.1 have a bypass of the patch for CVE-2025-68478 (External Control of File Name), leading to the root architectural issue within `LocalStorageService` remaining unresolved. Because the underlying storage layer lacks boundary containment checks, the system relies entirely on the HTTP-layer `ValidatedFileName` dependency. This defense-in-depth failure leaves the `POST /api/v2/files/` endpoint vulnerable to Arbitrary File Write. The multipart upload filename bypasses the path-parameter guard, allowing authenticated attackers to write files anywhere on the host system, leading to Remote Code Execution (RCE). Version 1.9.0 contains an updated fix.
Published: 2026-03-24
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution via Arbitrary File Write
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an arbitrary file write flaw that allows an authenticated attacker to upload a file to any path on the host system using the POST /api/v2/files/ endpoint. Because the underlying storage layer does not enforce boundary checks and relies solely on a HTTP-layer validation that can be bypassed, an attacker can place malicious code or scripts on the server. Writing a reverse‑shell script, for example, gives the attacker full control over the host, compromising confidentiality, integrity, and availability. This flaw is reflected by multiple CWE identifiers, including External Control of File Name and Unchecked Input Leading to Uncontrolled File Write.

Affected Systems

The affected vendor is langflow‑ai, with its Langflow product. Versions 1.2.0 through 1.8.1 are vulnerable. The issue was addressed in version 1.9.0, which includes a proper boundary check for file names and removed the exposed endpoint vulnerability.

Risk and Exploitability

With a CVSS score of 10 a, the flaw is critical. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. The exploit requires authentication and an active session on the API, so it is more likely to be used by internal or compromised user accounts. However, once a file is written, the attacker can execute arbitrary code, making it high risk. The design flaw remains after the patch for CVE‑2025‑68478 was bypassed, indicating a deep architectural issue.

Generated by OpenCVE AI on March 24, 2026 at 20:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the Langflow 1.9.0 (or later) update to close the file‑write validation flaw.

Generated by OpenCVE AI on March 24, 2026 at 20:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g2j9-7rj2-gm6c Langflow has an Arbitrary File Write (RCE) via v2 API
History

Tue, 24 Mar 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Langflow
Langflow langflow
CPEs cpe:2.3:a:langflow:langflow:*:*:*:*:*:*:*:*
Vendors & Products Langflow
Langflow langflow

Tue, 24 Mar 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 24 Mar 2026 13:00:00 +0000

Type Values Removed Values Added
Description Langflow is a tool for building and deploying AI-powered agents and workflows. Versions 1.2.0 through 1.8.1 have a bypass of the patch for CVE-2025-68478 (External Control of File Name), leading to the root architectural issue within `LocalStorageService` remaining unresolved. Because the underlying storage layer lacks boundary containment checks, the system relies entirely on the HTTP-layer `ValidatedFileName` dependency. This defense-in-depth failure leaves the `POST /api/v2/files/` endpoint vulnerable to Arbitrary File Write. The multipart upload filename bypasses the path-parameter guard, allowing authenticated attackers to write files anywhere on the host system, leading to Remote Code Execution (RCE). Version 1.9.0 contains an updated fix.
Title Langflow has an Arbitrary File Write (RCE) via v2 API
Weaknesses CWE-22
CWE-284
CWE-73
CWE-94
References
Metrics cvssV3_1

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


Subscriptions

Langflow Langflow
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-25T03:55:47.098Z

Reserved: 2026-03-18T21:23:36.675Z

Link: CVE-2026-33309

cve-icon Vulnrichment

Updated: 2026-03-24T17:47:08.500Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-24T13:16:02.983

Modified: 2026-03-24T19:17:15.510

Link: CVE-2026-33309

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T20:50:19Z