CVE-2026-7846
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.
Weakness
- CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-05-05 |
Timeline
- 2026-05-05Published by the CNA16:00 UTC
- 2026-05-05GitHub advisory published (GHSA-x229-w2j4-h748)same day
- 2026-05-05CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-x229-w2j4-h748, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI langchain-chatchat | through 0.3.1.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| chatchat-space langchain-chatchat | 0.3.1.0no fix listed0.3.1.1no fix listed0.3.1.2no fix listed0.3.1.3no fix listed | not listednot listednot listednot listed |
References
- https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-2-Silent-File-Overwrite.md
- https://github.com/chatchat-space/Langchain-Chatchat/
- https://github.com/chatchat-space/Langchain-Chatchat/issues/5463
- https://vuldb.com/submit/807795
- https://vuldb.com/vuln/361125
- https://vuldb.com/vuln/361125/cti
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-7846'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-7846'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-7846'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-7846'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).