CVE-2026-3345: Langflow: path traversal allows arbitrary file read
MEDIUMA path traversal vulnerability (CWE-22) in Langflow Desktop versions up to and including 1.8.4 allows any authenticated remote attacker to read arbitrary files on the host system by sending crafted URL requests containing dot-dot sequences. Although exploitation requires valid credentials (low-privilege), the confidentiality impact is rated HIGH — in AI pipeline environments, Langflow instances typically have filesystem access to .env files storing LLM API keys (OpenAI, Anthropic, etc.), RAG document stores, and workflow configurations containing proprietary data, making credential theft and data exfiltration a realistic secondary outcome. EPSS is low (0.059%) but the CVE sits in the 82nd exploitation-likelihood percentile with no public exploit or Nuclei template yet — CISA SSVC rates this TRACK, not emergency. Upgrade to a Langflow release above 1.8.4 immediately; if patching is delayed, restrict Langflow network exposure to internal networks only and rotate any credentials accessible to the process.
What is the risk?
Medium risk with elevated AI-specific concern. The PR:L requirement limits exposure to authenticated users only, but AC:L and AV:N mean exploitation is trivially simple once credentials exist. In AI/ML deployments, the blast radius extends beyond the host OS — Langflow processes routinely have read access to LLM provider API keys, vector database connection strings, and RAG corpora, making successful exploitation a gateway to broader AI infrastructure compromise. No active exploitation or public exploit currently, but the attack pattern is well-understood and requires no AI expertise.
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 Langflow Desktop to any version above 1.8.4 as soon as available. Monitor the Langflow GitHub releases and the IBM advisory at https://www.ibm.com/support/pages/node/7271094 for the patched version.
-
Network isolation: If patching is not immediately possible, restrict Langflow to internal-only network access via firewall rules or VPN gateway — remove any public-facing exposure.
-
Credential rotation: Audit and rotate all API keys and secrets stored in files accessible to the Langflow process (LLM provider keys, database passwords, Langflow .env).
-
Detection: Search web/proxy logs for requests containing URL-encoded or plaintext '../' or '%2e%2e%2f' sequences targeting Langflow endpoints. Implement a WAF rule blocking path traversal patterns on Langflow's HTTP interface.
-
Least privilege: Ensure the Langflow process user has minimal filesystem permissions — no access to OS-sensitive paths (/etc, /root, system credential stores) beyond what the application requires.
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-3345?
A path traversal vulnerability (CWE-22) in Langflow Desktop versions up to and including 1.8.4 allows any authenticated remote attacker to read arbitrary files on the host system by sending crafted URL requests containing dot-dot sequences. Although exploitation requires valid credentials (low-privilege), the confidentiality impact is rated HIGH — in AI pipeline environments, Langflow instances typically have filesystem access to .env files storing LLM API keys (OpenAI, Anthropic, etc.), RAG document stores, and workflow configurations containing proprietary data, making credential theft and data exfiltration a realistic secondary outcome. EPSS is low (0.059%) but the CVE sits in the 82nd exploitation-likelihood percentile with no public exploit or Nuclei template yet — CISA SSVC rates this TRACK, not emergency. Upgrade to a Langflow release above 1.8.4 immediately; if patching is delayed, restrict Langflow network exposure to internal networks only and rotate any credentials accessible to the process.
Is CVE-2026-3345 actively exploited?
No confirmed active exploitation of CVE-2026-3345 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-3345?
1. Patch: Upgrade Langflow Desktop to any version above 1.8.4 as soon as available. Monitor the Langflow GitHub releases and the IBM advisory at https://www.ibm.com/support/pages/node/7271094 for the patched version. 2. Network isolation: If patching is not immediately possible, restrict Langflow to internal-only network access via firewall rules or VPN gateway — remove any public-facing exposure. 3. Credential rotation: Audit and rotate all API keys and secrets stored in files accessible to the Langflow process (LLM provider keys, database passwords, Langflow .env). 4. Detection: Search web/proxy logs for requests containing URL-encoded or plaintext '../' or '%2e%2e%2f' sequences targeting Langflow endpoints. Implement a WAF rule blocking path traversal patterns on Langflow's HTTP interface. 5. Least privilege: Ensure the Langflow process user has minimal filesystem permissions — no access to OS-sensitive paths (/etc, /root, system credential stores) beyond what the application requires.
What systems are affected by CVE-2026-3345?
This vulnerability affects the following AI/ML architecture patterns: LLM pipeline builders, agent frameworks, RAG pipelines, model serving.
What is the CVSS score for CVE-2026-3345?
CVE-2026-3345 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.37%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0037 Data from Local System AML.T0049 Exploit Public-Facing Application AML.T0055 Unsecured Credentials Compliance Controls Affected
What are the technical details?
Original Advisory
IBM Langflow Desktop <=1.8.4 Langflow could allow a remote attacker to traverse directories on the system. An attacker could send a specially crafted URL request containing "dot dot" sequences (/../) to view arbitrary files on the system.
Exploitation Scenario
An attacker with a low-privilege Langflow account — obtained through credential stuffing, internal compromise, or a shared test account — crafts an HTTP GET request to a Langflow file-serving endpoint with a path traversal payload such as `/api/v1/files/download?path=../../../../../../opt/langflow/.env`. The response returns the environment file in plaintext, revealing OpenAI or Anthropic API keys, database connection strings, and Clerk/Stripe secrets. The attacker then uses the harvested LLM API keys to exfiltrate data via the provider's API, incur cost on the victim's account, or pivot into connected AI services. The entire attack requires no AI expertise — only a valid login and a basic understanding of path traversal.
Weaknesses (CWE)
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:H/I:N/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-2026-33017 9.8 langflow: Code Injection enables RCE
Same package: langflow CVE-2024-37014 9.8 Langflow: unauthenticated RCE via custom component API
Same package: langflow