CVE-2026-7846 in Chatchat-Space Langchain-Chatchat
A vulnerability has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. Impacted is the function files of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component OpenAI-Compatible File Upload API. Such manipulation of the argument file.filename leads to time-of-check tim...
Affects 1 product from 4 vendors. Facts below cite their sources.
Exploitable from adjacent network, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Chatchat-Space | Langchain-Chatchat | 0.3.1.0 0.3.1.1 0.3.1.2 0.3.1.3 |
| Langchain | — | — |
| Openai | — | — |
| Project | — | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
A vulnerability has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. Impacted is the function files of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component OpenAI-Compatible File Upload API. Such manipulation of the argument file.filename leads to time-of-check time-of-use. Access to the local network is required for this attack to succeed. The attack requires a high level of complexity. The exploitability is considered difficult. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-7846 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-154916-L |
| CVSS vector | CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| Published | 2026-05-05 |
| Last modified | 2026-07-24 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
CWE-367: CWE-367
Related attack patterns (CAPEC)
CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-367
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362, CWE-367
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A vulnerability in chatchat-space Langchain-Chatchat up to version 0.3.1.3 allows for a time-of-check time-of-use (TOCTOU) attack via manipulation of the file.filename argument in the OpenAI-Compatible File Upload API.
The attack involves manipulating the file.filename argument in the openai_routes.py file, which can lead to unauthorized access or manipulation of files on the server. Local network access is required to exploit this vulnerability.
Questions
What is CVE-2026-7846?
A vulnerability in chatchat-space Langchain-Chatchat up to version 0.3.1.3 allows for a time-of-check time-of-use (TOCTOU) attack via manipulation of the file.filename argument in the OpenAI-Compatible File Upload API.
What is the CVSS score for CVE-2026-7846?
CVE-2026-7846 has CVSS 2.6 (Low). Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N. EPSS: 0.2%.
Is CVE-2026-7846 actively exploited?
No confirmed active exploitation of CVE-2026-7846 as of 2026-07-25.
How do I remediate CVE-2026-7846?
Priority: MEDIUM.
What systems are affected by CVE-2026-7846?
CVE-2026-7846 affects Chatchat-Space Langchain-Chatchat; Langchain; Openai; Project.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Chatchat-Space","product":"Langchain-Chatchat","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-24.