Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed /v1/files API endpoint
-
DeliveryCraft filename with ../ traversal payload
-
ExploitWrite file outside openai_files directory
-
ExecutionOverwrite code/config or startup file
-
ImpactAchieve code execution or service disruption
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the Langchain-Chatchat 0.3.0 OpenAI-compatible API server is running and its /v1/files upload endpoint is network-reachable by the attacker; the attacker then supplies a malicious filename containing path-traversal sequences to escape the openai_files directory. No special product feature toggle or non-default configuration is indicated in the description, and per the CVSS vector no authentication or user interaction is required (PR:N/UI:N) - so against a default, exposed deployment this is remote and unauthenticated. The primary limiting factors are therefore network exposure of the API (deployments bound to localhost or behind authenticated gateways are not directly reachable) and pinning to the specific vulnerable 0.3.0 release; actual write impact also depends on filesystem permissions of the service account. |
| Impact | Signals conflict in a way that lowers real-world urgency below the headline CVSS 9.1. The provided CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N) describes a trivially reachable, unauthenticated, low-complexity network flaw, which is consistent with an exposed OpenAI-compatible API endpoint, and a public PoC exists (the Ro1ME gist), so publicly available exploit code exists. Against that, EPSS is only 0.14% (3rd percentile) and the CVE is NOT on CISA KEV, so there is no public exploit identified as actively used and no evidence of widespread opportunistic exploitation - consistent with a niche open-source target rather than a mass-exploited enterprise product. One internal inconsistency to verify: the NVD vector asserts C:H, but the description is a path-traversal arbitrary-FILE-WRITE primitive with no described read capability, so confidentiality impact is likely overstated while integrity (and potentially availability via file overwrite leading to RCE) is the true impact - treat the 9.1 as integrity/RCE-driven, not confidentiality. Net: a technically critical, easily exploitable bug in a low-footprint product with low exploitation probability and no confirmed active exploitation - prioritize patching only where Langchain-Chatchat 0.3.0 is actually network-exposed. |
| Exploit ScenarioDerived | An attacker who can reach the Langchain-Chatchat OpenAI-compatible API sends a crafted request to the /v1/files upload endpoint with a filename containing directory-traversal sequences (e.g. ../../), causing the file to be written outside the intended openai_files directory. By overwriting a Python module, startup script, or configuration file they can escalate the arbitrary write into remote code execution or denial of service. A public proof-of-concept is available as a GitHub gist, lowering the practical barrier to exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Unauthenticated path traversal in the OpenAI-compatible /v1/files upload endpoint of Langchain-Chatchat 0.3.0 allows remote attackers to write files to arbitrary locations outside the intended openai_files directory by supplying crafted filenames. The published CVSS is 9.1, but an independent assessment re-scores the issue at 8.1 (High) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L - because the primitive is a file write rather than a read or direct code execution, so confidentiality is unaffected and availability impact is limited. There is no confirmed active exploitation (CVE-2026-51882 is not in CISA KEV) and no public exploit identified at time of analysis, and with an EPSS score of 0.14% (3rd percentile) real-world urgency is driven mainly by whether the API server is network-reachable and how much filesystem write access the service account has.
RemediationAI
No vendor-released patch is identified in the available advisory data at time of analysis, so verify the current status of upstream issue https://github.com/chatchat-space/Langchain-Chatchat/issues/5468 and the project's release notes before assuming a fixed build exists, and upgrade as soon as a version that sanitizes upload filenames is published. Until then, the highest-value compensating control is to remove network exposure to the vulnerable endpoint: bind the API server to 127.0.0.1 or an internal interface and front it with an authenticated reverse proxy that blocks or requires authentication for /v1/files - the trade-off is that remote OpenAI-compatible clients and knowledge-base upload workflows break unless they are re-pointed at the authenticated gateway. Where uploads must remain available, enforce filename sanitization at the proxy or WAF (reject multipart filenames containing '../', encoded traversal variants, or absolute paths) and, more durably, patch the application to apply os.path.basename plus canonical-path containment checks against the openai_files root; WAF rules alone are bypassable with encoding tricks and need regression testing. Run Langchain-Chatchat under a dedicated unprivileged service account whose write permissions are confined to the intended data directory, and mount configuration, model, and credential paths read-only or on separate volumes so a successful traversal cannot overwrite them - this limits legitimate write flexibility but contains impact. Finally, monitor for file creation and modification outside openai_files, and given the low EPSS (0.14%) prioritize remediation by exposure: internet-facing 0.3.0 deployments with many API users first, localhost-only lab instances last.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Langchain-Chatchat 0.3.0 ships an OpenAI-compatible REST layer that mimics OpenAI's /v1/files endpoint so third-party clients can upload documents used to build knowledge bases for retrieval-augmented generation. The vulnerability is a classic CWE-22 improper limitation of a pathname to a restricted directory: the filename supplied in the multipart upload (or equivalent request metadata) is concatenated onto the server's openai_files storage root - typically via a naive os.path.join/string concatenation - without canonicalization, without stripping '../' segments, and without an allow-list or basename() call. Because the endpoint honors the caller-supplied name, traversal sequences escape the storage root and let the request land content anywhere the Langchain-Chatchat process can write. The public CPE data provided (cpe:2.3:a:n/a:n/a) and the EUVD affected-version list ('n/a n/a') are unpopulated, so product/version scoping rests on the description's explicit pin to release 0.3.0 and on the linked upstream GitHub issue rather than on authoritative CPE matching. The assessed vector records C:N with I:H/A:L, meaning the issue is treated as a write-only primitive: there is no confirmed arbitrary file read, no confirmed path to remote code execution in the flaw itself, and any availability effect (for example overwriting a config file, model cache, or lock file) is bounded by the permissions of the account running the service - an operator running the API as root or with broad write access should treat the impact as materially higher than this baseline.
Know when Langchain Chatchat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Remote unauthenticated write via the API (AV:N/AC:L/PR:N/UI:N); write-only traversal gives I:H with no read so C:N, and file overwrite yields limited A:L.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
The OpenAI-compatible file upload endpoint /v1/files in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the openai_files directory by crafting malicious filenames.
Executive ViewAI
Langchain-Chatchat 0.3.0 exposes an unauthenticated file-write vulnerability that could allow external actors to place arbitrary files on the host, creating risks to data integrity and service availability for organizations using the platform. Because the product may be network-reachable and often supports internal knowledge workflows, security leadership should treat this as a high-priority exposure. No vendor-released patch is identified at time of analysis, and there is no public exploit identified at time of analysis, so immediate compensating controls are essential.
Restrict network access to the API server; disable or block the /v1/files upload endpoint at the reverse proxy or WAF; run the service under a low-privilege account with write access limited to the intended directory; implement file integrity monitoring and alerting on unexpected file writes; and monitor vendor advisory for a patched release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
More in Langchain Chatchat
View allUnauthenticated path traversal in Langchain-Chatchat 0.3.1 lets a remote attacker write files to arbitrary filesystem lo
Path traversal in Langchain-Chatchat 0.3.0 and 0.3.1 allows unauthenticated remote attackers to write knowledge base con
Path traversal in Langchain-Chatchat's backend file upload endpoint allows remote attackers to manipulate file paths via
Path traversal in Langchain-Chatchat version 0.3.1 and earlier allows authenticated low-privilege users to read arbitrar
Missing authentication in Langchain-Chatchat up to version 0.3.1.3 allows unauthenticated local network attackers to acc
Path traversal vulnerability in Langchain-Chatchat up to 0.3.1 allows authenticated attackers with low privileges to rea
Insufficiently random file ID generation in Langchain-Chatchat up to version 0.3.1.3 allows authenticated local network
Time-of-check time-of-use (TOCTOU) vulnerability in Langchain-Chatchat up to 0.3.1.3 allows authenticated local network
Weak hash function in the Vision Chat Paste Image Handler of Langchain-Chatchat up to 0.3.1.3 allows local network attac
EUVD-2026-91123
GHSA-p52p-3gpf-v5f9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB