← Back to search

CVE-2026-51888

7.5 HIGHpublic exploit available

Published 2026-10-01 · Updated 2026-10-06

AI risk analysis

Summary
The langflow AI application has a directory traversal vulnerability in its knowledge base creation endpoint that allows attackers to write files outside the intended workspace, potentially leading to arbitrary file overwrites or writes.
Exploitability
Exploitation is straightforward requiring only a single HTTP POST request to the vulnerable endpoint with an absolute path in the filename parameter, with no authentication required.
Blast radius
If exploited, this vulnerability could allow attackers to overwrite critical application files, configuration files, or even inject malicious code into the system, potentially leading to full system compromise.
Detection
Monitor for HTTP POST requests to /api/v1/knowledge_bases with absolute paths in filename parameters, particularly those containing path traversal sequences like '../' or '/etc/', and check for file system write operations outside the intended workspace directory.
Prioritized remediation
Upgrade to langflow version 1.8.5 or later to address the directory traversal vulnerability in the knowledge base creation endpoint.
directory-traversalwebfile-writehttp

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weaknesses

CWE-22

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.