CVE-2026-9138: Langflow is vulnerable to arbitrary file write and arbitrary file deletion due to unvalidated paths in file-processing components
IBM Langflow OSS 1.0.0 through 1.11.2 Langflow could allow an authenticated attacker to write arbitrary files to the server due to improper input validation in the SaveToFileComponent. The application constructs local file paths using attacker‑controlled input without sufficient sanitization when handling requests to the /api/v1/run/{flowid} endpoint. An attacker with low‑privileged authenticated access (such as a valid API key or user session) can supply crafted path values, including absolute paths or path traversal sequences, allowing arbitrary file writes to locations writable by the Langflow process. Successful exploitation may lead to unauthorized file creation or modification, potentially resulting in further compromise depending on the deployment environment.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
IBM Langflow OSSto a version that resolves this vulnerability.Fixed in 1.11.3 - Compensating control
If immediate upgrade to Langflow OSS 1.11.3 is not possible, restrict network access to the /api/v1/run/{flow_id} endpoint (e.g., via firewall/ACL/WAF) to reduce exposure of the vulnerable request path handling.
Event History
Frequently Asked Questions
Which deployments are affected?
IBM Langflow OSS versions 1.0.0 through 1.11.2 are identified as affected. Exposure applies where the Langflow process can write to filesystem locations targeted through crafted path input.
What level of access does an attacker need?
An attacker needs low-privileged authenticated access, such as a valid API key or an authenticated user session. No user interaction is required.
How is the vulnerable functionality reached?
The issue is triggered through requests to the /api/v1/run/{flow_id} endpoint involving the SaveToFileComponent. Crafted absolute paths or path-traversal sequences can influence the local file path used by the application.