Description
langflow-ai langflow v1.8.4 is affected by: Directory Traversal. The impact is: Arbitrary file write outside the intended workspace or storage boundary.. The component is: src/backend/base/langflow/api/v1/knowledge_bases.py:knowledge_bases-create_knowledge_base-a-live-http-post-to-create-knowledge-base. The attack vector is: Attack surface: HTTP or browser-backed service path. A public-facing upload or HTTP route handler forwards an attacker-controlled path or filename into host file creation without any visible boundary enforcement. ¶¶ A weakness has been identified in langflow-ai langflow up to 1.8.4. langflow contains an absolute path traversal vulnerability in knowledge_bases-create_knowledge_base-a-live-http-post-to-create-knowledge-base (src/backend/base/langflow/api/v1/knowledge_bases.py:51). An attacker can write or overwrite files outside the intended working directory by providing absolute paths in the knowledge base creation endpoint.
Published: 2026-10-01
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write / Directory Traversal
Action: Apply Patch
AI Analysis

Impact

A directory traversal flaw exists in the knowledge base creation endpoint of langflow. The endpoint accepts a filename parameter and forwards it directly into the host file creation routine without enforcing a boundary, allowing an attacker to provide absolute paths. As a result, an attacker can write or overwrite any file on the filesystem that the application’s user has permission to modify, potentially compromising code execution, data integrity, or system configuration.

Affected Systems

langflow‑ai Langflow version 1.8.4 is affected. The vulnerability resides in src/backend/base/langflow/api/v1/knowledge_bases.py. No other vendors or products are listed.

Risk and Exploitability

The attack vector is remote, via HTTP requests to the public knowledge base creation route. Because the flaw permits arbitrary file write, a successful exploit could lead to the creation of malicious executables or alteration of critical files, resulting in full system compromise. The CVSS score is 7.5, indicating a high severity level. The EPSS score is < 1%, and the vulnerability is not listed in CISA’s KEV catalog, so the current exploit probability is low but non-zero. Until a fix is applied, the risk remains significant.

Generated by OpenCVE AI on October 7, 2026 at 07:55 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the newest Langflow release that contains the directory traversal fix.
  • If an update cannot be applied immediately, modify the knowledge_base creation endpoint to reject absolute paths and enforce that filenames are relative to a sandboxed directory.
  • Deploy a WAF or reverse proxy rule to block HTTP requests containing leading slashes or traversal sequences targeting the vulnerable endpoint.
  • Reduce the operating system privileges of the Langflow process so that even if an attacker writes a file outside the intended directory, it cannot affect critical system files.

Generated by OpenCVE AI on October 7, 2026 at 07:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 07 Oct 2026 08:15:00 +0000

Type Values Removed Values Added
Title Directory Traversal Allowing Arbitrary File Write in Langflow Knowledge Base Creation Endpoint

Tue, 06 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Langflow
Langflow langflow
Vendors & Products Langflow
Langflow langflow

Thu, 01 Oct 2026 23:30:00 +0000

Type Values Removed Values Added
Title Directory Traversal Allowing Arbitrary File Write in Langflow Knowledge Base Creation Endpoint
Weaknesses CWE-22

Thu, 01 Oct 2026 21:45:00 +0000

Type Values Removed Values Added
Description langflow-ai langflow v1.8.4 is affected by: Directory Traversal. The impact is: Arbitrary file write outside the intended workspace or storage boundary.. The component is: src/backend/base/langflow/api/v1/knowledge_bases.py:knowledge_bases-create_knowledge_base-a-live-http-post-to-create-knowledge-base. The attack vector is: Attack surface: HTTP or browser-backed service path. A public-facing upload or HTTP route handler forwards an attacker-controlled path or filename into host file creation without any visible boundary enforcement. ¶¶ A weakness has been identified in langflow-ai langflow up to 1.8.4. langflow contains an absolute path traversal vulnerability in knowledge_bases-create_knowledge_base-a-live-http-post-to-create-knowledge-base (src/backend/base/langflow/api/v1/knowledge_bases.py:51). An attacker can write or overwrite files outside the intended working directory by providing absolute paths in the knowledge base creation endpoint.
References

Subscriptions

Langflow Langflow
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-06T14:20:43.933Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51888

cve-icon Vulnrichment

Updated: 2026-10-06T14:18:43.104Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-01T22:17:03.527

Modified: 2026-10-06T15:17:18.300

Link: CVE-2026-51888

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T08:00:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')