Skip to main content

Langchain-Chatchat EUVDEUVD-2026-27408

| CVE-2026-7847 LOW
Use of Insufficiently Random Values (CWE-330)
2026-05-05 VulDB GHSA-jv4p-mhmp-69vw
1.2
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain authenticated network access
  2. Delivery
    Observe file ID pattern from API responses
  3. Exploit
    Enumerate predicted file IDs sequentially
  4. Execution
    Retrieve unauthorized file metadata or content
  5. Impact
    Exfiltrate 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Langchain-Chatchat 0.3.1.3
Langchain-Chatchat 0.3.1.1
Langchain-Chatchat 0.3.1.0
Langchain-Chatchat 0.3.1.2

Affected Packages

pypi langchain-chatchat no fix

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

Vendor (VulDB) PRIMARY 1.2 LOW
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

Attack Vector
Adjacent
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
May 05, 2026 - 17:22 NVD
2.6 (LOW) 1.2 (LOW)

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

EPSS Score
0.0%
Top 94% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Controlled
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-75128 CRITICAL POC
9.3 Oct 20

Unauthenticated remote command execution in Langchain-Chatchat through version 0.3.1.3 allows any network-reachable atta

CVE-2026-51884 CRITICAL
9.8 Oct 01

Unauthenticated path traversal in Langchain-Chatchat 0.3.1 lets a remote attacker write files to arbitrary filesystem lo

CVE-2026-51882 CRITICAL
9.1 Oct 01

Unauthenticated path traversal in the OpenAI-compatible /v1/files upload endpoint of Langchain-Chatchat 0.3.0 allows rem

CVE-2026-51883 CRITICAL
9.1 Oct 01

Path traversal in Langchain-Chatchat 0.3.0 and 0.3.1 allows unauthenticated remote attackers to write knowledge base con

CVE-2025-6853 LOW POC
2.1 Jun 29

Path traversal in Langchain-Chatchat's backend file upload endpoint allows remote attackers to manipulate file paths via

CVE-2025-6854 LOW POC
2.1 Jun 29

Path traversal in Langchain-Chatchat version 0.3.1 and earlier allows authenticated low-privilege users to read arbitrar

CVE-2026-7844 LOW POC
2.1 May 05

Missing authentication in Langchain-Chatchat up to version 0.3.1.3 allows unauthenticated local network attackers to acc

CVE-2025-6855 LOW POC
2.0 Jun 29

Path traversal vulnerability in Langchain-Chatchat up to 0.3.1 allows authenticated attackers with low privileges to rea

CVE-2026-7846 LOW POC
1.2 May 05

Time-of-check time-of-use (TOCTOU) vulnerability in Langchain-Chatchat up to 0.3.1.3 allows authenticated local network

CVE-2026-7845 LOW POC
1.2 May 05

Weak hash function in the Vision Chat Paste Image Handler of Langchain-Chatchat up to 0.3.1.3 allows local network attac

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy