Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessNetwork reconnaissance
-
DeliveryIdentify Langchain-Chatchat service
-
ExploitSend unauthenticated file list request
-
ExecutionEnumerate stored files
-
PersistRetrieve sensitive file content
-
ImpactDelete critical files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to have network access to the local network segment where Langchain-Chatchat is deployed (AV:A in CVSS vector); the service must be running with file endpoints exposed and accessible from that network. No special configuration, feature enablement, or user interaction is required - the vulnerable code path is triggered by any unauthenticated request to the file endpoints on default configurations. The limiting factor is network proximity: the attacker must be on the same local network (not routable over the internet from arbitrary locations unless the service is also exposed via port forwarding or public IP). Organizations with strict network segmentation that isolate the service to a trusted administrative network or deploy behind an authenticating gateway reduce practical risk. The vulnerability does not require authentication to trigger, does not depend on specific versions of dependencies, and does not mandate non-default configuration - any deployment of Langchain-Chatchat 0.3.1.3 or earlier with accessible file endpoints is vulnerable. |
| Impact | The CVSS 2.1 score reflects a low severity rating, but this is misleading for real-world risk assessment. The attack vector is adjacent network (AV:A), which requires attacker presence on the same local network segment - a significant constraint that reduces opportunistic exploitation. However, multiple risk signals conflict with the low CVSS score: (1) the vulnerability represents a complete authentication bypass on file operations, which is a critical control failure; (2) publicly available exploit code exists, enabling non-specialist attackers; (3) the attack complexity is low (AC:L) with no special timing (AT:N) or user interaction (UI:N) required. The CVSS vector shows low technical impact (VC:L/VI:L/VA:L) because the scope is unchanged and impact is limited to file-level access rather than system-wide compromise. The exploitation status is 'E:P' (proof of concept publicly available), confirming public exploit availability. Real-world priority should be elevated if this service is deployed on shared networks or accessible from untrusted internal segments; organizations with strict network segmentation may lower priority. The project's lack of response to early notification (per description) suggests slow patch velocity. |
| Exploit ScenarioDerived | An attacker on the same local network segment (e.g., shared corporate Wi-Fi, internal LAN, or compromised VPN connection) discovers the Langchain-Chatchat API service running on a network-accessible host. The attacker sends unauthenticated HTTP requests to enumerate files (list_files endpoint), retrieves sensitive data (retrieve_file_content), or deletes critical files (delete_file endpoint) without providing credentials, succeeding because the API routes lack authentication checks. With publicly available exploit code, the attacker requires no specialized knowledge to automate file enumeration and exfiltration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Missing authentication in Langchain-Chatchat up to version 0.3.1.3 allows unauthenticated local network attackers to access and manipulate files through the Compatible File Service endpoints (files/list_files, retrieve_file, retrieve_file_content, delete_file) in openai_routes.py without credentials. The vulnerability has a publicly available proof-of-concept exploit and affects confidentiality, integrity, and availability of stored files, though impact is limited to low severity per CVSS scoring; however, the lack of authentication on file operations represents a significant security control failure.
RemediationAI
Immediate remediation requires implementing authentication validation on all file service endpoints (files/list_files, retrieve_file, retrieve_file_content, delete_file) in openai_routes.py. Apply authentication middleware or decorators to verify user credentials (API keys, OAuth tokens, or session identifiers) before processing any file operations. Upgrade to a patched version once released by the chatchat-space project; monitor the GitHub repository (https://github.com/chatchat-space/Langchain-Chatchat) and official advisory channels for patch availability. Until a vendor patch is available, implement compensating controls: (1) restrict network access to the Langchain-Chatchat API server to trusted internal networks only using firewall rules or network segmentation (e.g., VLANs), blocking external and untrusted internal access; (2) disable file service endpoints entirely if not required for your use case by removing or commenting out the route handlers; (3) implement a reverse proxy (nginx, Apache) in front of the service with authentication enforcement before requests reach the application, though this adds operational complexity. Each mitigation has trade-offs: network restriction reduces flexibility but is most effective if deployment supports it; disabling features removes functionality; proxy-based auth adds latency and architectural complexity. None of these are permanent solutions - vendor patch deployment must be prioritized.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Langchain-Chatchat is a RAG (Retrieval-Augmented Generation) framework built on LLM chains that includes an OpenAI-compatible API server. The vulnerable component is the Compatible File Service in openai_routes.py, which exposes file management endpoints (list_files, retrieve_file, retrieve_file_content, delete_file) without implementing authentication middleware or access control validation. The root cause (CWE-306: Missing Authentication for Critical Function) indicates that the application fails to verify user identity before processing file operations that should be restricted. This suggests either absent authentication decorators/middleware on these route handlers or incomplete implementation of credential validation mechanisms that should guard these API endpoints.
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
CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in chatchat-space Langchain-Chatchat up to 0.3.1.3. This vulnerability affects the function files/list_files/retrieve_file/retrieve_file_content/delete_file of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component Compatible File Service. The manipulation results in missing authentication. The attacker must have access to the local network to execute the attack. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Langchain Chatchat
View allUnauthenticated remote command execution in Langchain-Chatchat through version 0.3.1.3 allows any network-reachable atta
Unauthenticated path traversal in Langchain-Chatchat 0.3.1 lets a remote attacker write files to arbitrary filesystem lo
Unauthenticated path traversal in the OpenAI-compatible /v1/files upload endpoint of Langchain-Chatchat 0.3.0 allows rem
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
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-27388
GHSA-xvqj-p4jj-r7xh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB