Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain authenticated network access
-
DeliveryObserve file ID pattern from API responses
-
ExploitEnumerate predicted file IDs sequentially
-
ExecutionRetrieve unauthorized file metadata or content
-
ImpactExfiltrate sensitive information
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic random values
|
| Exploitation Conditions | Exploitation requires four specific conditions: (1) network-level access to the Langchain-Chatchat instance (AV:A from CVSS vector) - the attacker must be on the same local network segment or have routed network connectivity to the application; (2) valid authenticated credentials (PR:L) - the attacker must possess a legitimate user account or session token to interact with the API; (3) the application must be running a vulnerable version (up to 0.3.1.3) without additional security hardening; (4) the file upload feature must be enabled and accessible in the target deployment. Non-default configurations that restrict network access or require multi-factor authentication for sensitive operations would significantly raise attack complexity beyond the documented high level. Default configurations with exposed network interfaces and basic credential-based authentication are fully vulnerable. |
| Impact | Despite the CVSS 4.0 vector indicating only low confidentiality impact with network access required (AV:A) and high complexity (AC:H), the actual real-world risk is severely limited by multiple factors. Authentication is required (PR:L), attack complexity is explicitly high, and the impact is confined to information disclosure of low severity-not remote code execution or critical data breach. The CVSS 1.2 base score correctly reflects this minimal severity. However, the public availability of exploit code (E:P in vector) and lack of vendor response are concerning signals that could enable opportunistic attacks in specific deployment scenarios. The vulnerability is most exploitable in environments where file uploads contain sensitive information accessible only through valid but unpredictable IDs. Organizations using default deployments on isolated networks face minimal risk; those exposing Langchain-Chatchat to broader audiences should prioritize patching. The gap between high attack complexity and public POC suggests the exploit requires domain-specific knowledge and specific environmental conditions rather than trivial execution. |
| Exploit ScenarioDerived | An authenticated attacker on the same local network as a Langchain-Chatchat deployment observes that file IDs follow a predictable pattern. By systematically testing sequential or algorithmically derived file ID values, the attacker enumerates valid file identifiers and accesses uploaded documents that were intended to be private or access-controlled. This could include confidential conversation history, user data, or uploaded files containing sensitive information. The public exploit available on GitHub demonstrates the feasibility of this enumeration attack, reducing the barrier to exploitation for attackers with network access and valid credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
Insufficiently random file ID generation in Langchain-Chatchat up to version 0.3.1.3 allows authenticated local network attackers to predict uploaded file identifiers via the _get_file_id function, enabling information disclosure. The vulnerability requires local network access and authenticated privileges but carries low exploitability due to high attack complexity. A public exploit is available, though the project has not responded to early disclosure notifications.
RemediationAI
Upgrade Langchain-Chatchat to a version newer than 0.3.1.3 once a patched release is available. As of now, the vendor has not responded to disclosure notifications and no patched version has been confirmed released. Immediate compensating controls include: restrict file upload functionality to trusted internal networks only by implementing network-level access controls (firewall rules limiting access to the upload endpoint), require strong authentication with session management and rate limiting on file upload requests to raise attack complexity further, disable the file upload feature entirely if not essential to operations until a vendor patch is released, and implement monitoring and logging of file ID access patterns to detect enumeration attempts. Each mitigation has trade-offs: disabling uploads removes functionality entirely; network restriction limits legitimate remote users; rate limiting may impact user experience during bulk operations. Monitor the GitHub issue https://github.com/chatchat-space/Langchain-Chatchat/issues/5464 and the project repository for patch announcements.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in the file ID generation mechanism within libs/chatchat-server/chatchat/server/api_server/openai_routes.py, specifically in the _get_file_id function. CWE-330 (Use of Insufficiently Random Values) indicates that the function does not generate cryptographically secure random identifiers for uploaded files. This allows an attacker with network access to the application to predict or enumerate valid file IDs, bypassing the intended randomness that protects file access control. The affected product is Langchain-Chatchat, an LLM-based chat application built on the Langchain framework, making file upload handling a critical security component.
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:H/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
1DescriptionCVE.org
A vulnerability was found in chatchat-space Langchain-Chatchat up to 0.3.1.3. The affected element is the function _get_file_id of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component Uploaded File Handler. Performing a manipulation results in insufficiently random values. Access to the local network is required for this attack. The attack's complexity is rated as high. The exploitability is described as difficult. The exploit has been made public and could 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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
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
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-27408
GHSA-jv4p-mhmp-69vw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB