# CVE-2026-33309: Langflow has an Arbitrary File Write (RCE) via v2 API

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 13.9%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-19T17:46:43.000Z
- Modified: 2026-06-17T10:37:17.890Z
- Also known as: GHSA-g2j9-7rj2-gm6c, PYSEC-2026-79
- Weaknesses: CWE-22, CWE-73, CWE-94, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- langflow-ai langflow: >= 1.2.0, < 1.9.0
- langflow (PyPI): from 1.2.0 before 1.9.0
- langflow langflow: from 1.2.0 before 1.9.0

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/langflow-ai/langflow/security/advisories/GHSA-g2j9-7rj2-gm6c> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33309> (advisory)
- <https://github.com/langflow-ai/langflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-79.yaml> (web)

## Sources

- CVE List: [CVE-2026-33309](https://www.cve.org/CVERecord?id=CVE-2026-33309), CVE Terms of Use, modified 2026-03-25
- GitHub Advisory Database: [GHSA-g2j9-7rj2-gm6c](https://github.com/advisories/GHSA-g2j9-7rj2-gm6c), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2026-33309](https://nvd.nist.gov/vuln/detail/CVE-2026-33309), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-79](https://osv.dev/vulnerability/PYSEC-2026-79), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-33309 · Whole record: https://cve.day/CVE-2026-33309.json · Rebuilt by cve.day 2026-11-25T22:59:16.540Z
