Skip to main content

Langchain-Chatchat CVE-2026-7844

| EUVDEUVD-2026-27388 LOW
Missing Authentication for Critical Function (CWE-306)
2026-05-05 VulDB GHSA-xvqj-p4jj-r7xh
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Network reconnaissance
  2. Delivery
    Identify Langchain-Chatchat service
  3. Exploit
    Send unauthenticated file list request
  4. Execution
    Enumerate stored files
  5. Persist
    Retrieve sensitive file content
  6. Impact
    Delete 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.

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

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

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

Affected Packages

euvd langchain_chatchat no fix

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

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

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

Lifecycle Timeline

2
Severity Changed
May 05, 2026 - 16:22 NVD
MEDIUM LOW
CVSS changed
May 05, 2026 - 16:22 NVD
6.3 (MEDIUM) 2.1 (LOW)

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

EPSS Score
0.0%
Top 91% 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

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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-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-7847 LOW POC
1.2 May 05

Insufficiently random file ID generation in Langchain-Chatchat up to version 0.3.1.3 allows authenticated local network

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