PT-2026-37083 · Unknown · Langchain-Chatchat
Dem00
·
Published
2026-05-05
·
Updated
2026-05-05
·
CVE-2026-7846
CVSS v3.1
2.6
Low
| Vector | AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Langchain-Chatchat versions prior to 0.3.1.4
Description
A time-of-check time-of-use (TOCTOU) issue exists in the OpenAI-Compatible File Upload API component. Manipulation of the
file.filename argument within the files() function located in the libs/chatchat-server/chatchat/server/api server/openai routes.py file can be exploited. Successful exploitation requires local network access and is characterized by high complexity.Recommendations
As a temporary workaround, restrict access to the
files() function in the libs/chatchat-server/chatchat/server/api server/openai routes.py file to minimize the risk of exploitation.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Race Condition
Time Of Check To Time Of Use
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Langchain-Chatchat