Race Condition in Langchain-Chatchat's OpenAI-Compatible File Upload API
CVE-2026-7846

2.1LOW

Key Information:

Vendor
CVE Published:
5 May 2026

Badges

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

What is CVE-2026-7846?

A race condition vulnerability exists in Langchain-Chatchat's OpenAI-Compatible File Upload API, specifically within the function handling file uploads in openai_routes.py. This flaw allows for manipulation of the file.filename parameter, leading to a time-of-check to time-of-use (TOCTOU) issue. Attackers can exploit this vulnerability if they have access to the local network, although exploiting it requires a high level of complexity. While the problem has been publicly disclosed and the project team has been made aware, they have yet to respond to mitigate this security risk.

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:
None
Integrity:
Low
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
.