CVE-2026-4502: Langflow: path traversal enables arbitrary file write
MEDIUMIBM Langflow Desktop versions 1.2.0 through 1.8.4 contain a path traversal flaw (CWE-22) that lets any authenticated user write arbitrary files anywhere on the host by embedding dot-dot sequences in URL requests — no admin rights needed, no user interaction required. While the raw EPSS score is low at 0.00052, it sits in the top 84th percentile for exploitation likelihood, and the HIGH integrity impact (CVSS I:H) combined with a network-accessible, low-complexity attack vector makes this a practical weapon in any environment where Langflow is reachable over a network. In LLM orchestration contexts, arbitrary file write is rarely just file write — an attacker who overwrites a Langflow flow definition, agent tool script, or startup file converts this into de facto code execution at the next pipeline run. No public exploit exists and SSVC is TRACK, but the low bar for exploitation means teams should prioritize patching and immediately verify that Langflow instances are not directly network-exposed with minimal access controls.
What is the risk?
CVSS 6.5 Medium understates operational risk in AI/ML environments. Arbitrary file write in an LLM orchestration framework can escalate to code execution if an attacker targets Python scripts, flow configs, or environment files loaded at runtime — a well-known post-exploitation pattern in web application path traversal attacks. Low attack complexity and low privilege requirement make this reachable by any authenticated user, not just administrators, widening the threat actor pool to include insider threats and compromised service accounts. No KEV listing and no public exploit anchor this at TRACK, but the EPSS 84th percentile signals meaningful real-world exploitation interest.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Langflow | pip | — | No patch |
Do you use Langflow? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: Upgrade IBM Langflow Desktop beyond version 1.8.4; review IBM's advisory at ibm.com/support/pages/node/7271097 for the patched release.
-
Network isolation: Ensure no Langflow instance is directly internet-facing; place behind authenticated proxies or VPN even for internal deployments.
-
Least privilege: Run Langflow processes under a dedicated OS account with minimal file system permissions to bound the blast radius of a successful traversal.
-
File integrity monitoring: Deploy FIM rules on Langflow config directories, flow definition paths, and any Python files loaded at pipeline startup — alert on unexpected writes.
-
Audit authenticated users: Review which accounts have Langflow access and remove stale or overly broad access immediately.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-4502?
IBM Langflow Desktop versions 1.2.0 through 1.8.4 contain a path traversal flaw (CWE-22) that lets any authenticated user write arbitrary files anywhere on the host by embedding dot-dot sequences in URL requests — no admin rights needed, no user interaction required. While the raw EPSS score is low at 0.00052, it sits in the top 84th percentile for exploitation likelihood, and the HIGH integrity impact (CVSS I:H) combined with a network-accessible, low-complexity attack vector makes this a practical weapon in any environment where Langflow is reachable over a network. In LLM orchestration contexts, arbitrary file write is rarely just file write — an attacker who overwrites a Langflow flow definition, agent tool script, or startup file converts this into de facto code execution at the next pipeline run. No public exploit exists and SSVC is TRACK, but the low bar for exploitation means teams should prioritize patching and immediately verify that Langflow instances are not directly network-exposed with minimal access controls.
Is CVE-2026-4502 actively exploited?
No confirmed active exploitation of CVE-2026-4502 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-4502?
1. Patch: Upgrade IBM Langflow Desktop beyond version 1.8.4; review IBM's advisory at ibm.com/support/pages/node/7271097 for the patched release. 2. Network isolation: Ensure no Langflow instance is directly internet-facing; place behind authenticated proxies or VPN even for internal deployments. 3. Least privilege: Run Langflow processes under a dedicated OS account with minimal file system permissions to bound the blast radius of a successful traversal. 4. File integrity monitoring: Deploy FIM rules on Langflow config directories, flow definition paths, and any Python files loaded at pipeline startup — alert on unexpected writes. 5. Audit authenticated users: Review which accounts have Langflow access and remove stale or overly broad access immediately.
What systems are affected by CVE-2026-4502?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, LLM orchestration pipelines, multi-agent systems.
What is the CVSS score for CVE-2026-4502?
CVE-2026-4502 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.27%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application AML.T0055 Unsecured Credentials AML.T0081 Modify AI Agent Configuration AML.T0110 AI Agent Tool Poisoning Compliance Controls Affected
What are the technical details?
Original Advisory
IBM Langflow Desktop 1.2.0 through 1.8.4 Langflow could allow an authenticated attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to write arbitrary files on the system.
Exploitation Scenario
An attacker with a compromised low-privilege Langflow account (obtained via credential stuffing or insider access) crafts a POST request to a Langflow file-handling endpoint embedding a traversal payload such as /../../../opt/langflow/flows/main_agent.json. The server fails to normalize the path before writing, overwriting the primary agent flow definition with attacker-controlled JSON that adds a new tool call routing all LLM responses to an external webhook. On the next legitimate user interaction with the Langflow agent, the modified flow silently exfiltrates conversation content and any API keys in the agent's environment to the adversary's endpoint — all without triggering visible errors in the Langflow UI.
Weaknesses (CWE)
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Primary
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2026-10561 10.0 Langflow: auth bypass + unauthenticated RCE (CVSS 10)
Same package: langflow CVE-2026-55255 9.9 Langflow: IDOR allows cross-user flow execution
Same package: langflow CVE-2026-33309 9.9 langflow: Path Traversal enables file access
Same package: langflow CVE-2024-37014 9.8 Langflow: unauthenticated RCE via custom component API
Same package: langflow CVE-2026-33017 9.8 langflow: Code Injection enables RCE
Same package: langflow