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.8%
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
- HighCVE-2026-63651: LiveDocs is a primary-source-first documentation for AI agents. Prior to version 0.7.0, fetch_docs and introspect…Similar attack · NVD/CVE Database
- HighCVE-2026-125271 - AWS API MCP Server Security Policy Bypass via Incorrect Operation Name NormalizationSimilar attack · AWS Security Bulletins
- MediumCVE-2026-83953 GitHub Copilot for Jetbrains Information Disclosure VulnerabilitySimilar attack · MSRC Security Update Guide
- HighGHSA-ghwv-vrp2-2975: Cocos AI Intra-handshake attested TLS implementation is vulnerable to TOCTOU AttacksSimilar attack · GitHub Advisory Database
- MediumGHSA-5m6c-38r8-5w76: Dagu MCP DAG specification read bypasses path containment and workspace isolationSimilar attack · GitHub Advisory Database