Insufficient Randomness in File Upload Handler of Langchain-Chatchat by chatchat-space
CVE-2026-7847

2.1LOW

Key Information:

Vendor
CVE Published:
5 May 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2026-7847?

A vulnerability exists in the Uploaded File Handler of Langchain-Chatchat, impacting versions up to 0.3.1.3. Specifically, the issue lies within the _get_file_id function in the openai_routes.py file, where manipulation can lead to the use of insufficiently random values. This flaw necessitates access to the local network for exploitation, and despite the complex nature of the attack, it has been publicly disclosed and could potentially be exploited. The developers have been notified of this vulnerability; however, there has been no response to address the issue.

Affected Version(s)

Langchain-Chatchat 0.3.1.0

Langchain-Chatchat 0.3.1.1

Langchain-Chatchat 0.3.1.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
2.1
Severity:
LOW
Confidentiality:
Low
Integrity:
None
Availability:
None
Attack Vector:
Adjacent Network
Attack Complexity:
High
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Dem00 (VulDB User)
VulDB CNA Team
.