GHSA-g2j9-7rj2-gm6c: Langflow has an Arbitrary File Write (RCE) via v2 API
- Identifiers
- CVE-2026-33309GHSA-g2j9-7rj2-gm6c
- Published
- Record updated
- Affected
- langflow >= 1.2.0, <= 1.8.1
- Fixed in
- 1.9.0
- released April 14, 2026, 26 days after disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 13.5%
Summary
GHSA-g2j9-7rj2-gm6c reports an Arbitrary File Write in Langflow via the POST /api/v2/files/ endpoint. The multipart upload filename is passed unchecked to LocalStorageService, which lacks a containment check, so an authenticated attacker can write files anywhere on the host, potentially leading to Remote Code Execution. The reporter tested this against langflowai/langflow:latest (v1.7.3).
Mitigation
Sanitize the multipart filename before processing by stripping directory components with pathlib's name attribute and rejecting empty names or names containing ".." with HTTP 400. Also add a canonical path containment check inside LocalStorageService.save_file.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langflowPyPIReaches an LLM package through dependencies
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online