All vulnerabilities

Servers and applications

CVE-2026-33309

Arbitrary File Write (RCE) via v2 API

Severity
Critical 9.9
Published
18 Mar 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.9.0
Exploit chance
14% in the next 30 daysHigher than 96% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)CWE-73Code injection (CWE-94)Improper access control (CWE-284)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Also known as
GHSA-g2j9-7rj2-gm6c
Sources
NVD, Project advisories (GitHub)

Description

While reviewing the recent patch for CVE-2025-68478 (External Control of File Name in v1.7.1), I discovered that the root architectural issue within LocalStorageService remains 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).

The vulnerability exists in two layers:

  • API Layer (src/backend/base/langflow/api/v2/files.py:162): Inside the upload_user_file route, the filename is extracted directly from the multipart Content-Disposition header (new_filename = file.filename). It is passed verbatim to the storage service.
From langflow-ai/langflow's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LangflowServers and applications · cpe:a:langflow:langflow
  • From 1.2.0 before 1.9.0
LangflowServers and applications · github:langflow-ai/langflow
  • From 1.2.0 before 1.9.0

About Langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

From its GitHub repository.
Weekly downloads (PyPI)
8,374PyPI Stats, 15 Nov 2026
Docker Hub pulls
4,731,179Docker Hub, 15 Nov 2026
GitHub stars
156,656GitHub, 15 Nov 2026
Forks
10,412GitHub, 15 Nov 2026
Latest release
v1.13.2GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MITGitHub
First published on GitHub
8 Feb 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-33309
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-33309
  • GitHub Advisory Database https://github.com/advisories/GHSA-g2j9-7rj2-gm6c
  • github.com https://github.com/langflow-ai/langflow/security/advisories/GHSA-g2j9-7rj2-gm6c