Home / chatchat-space / Langchain-Chatchat / CVE-2026-7846
CVE-2026-7846: is it exploited, and which versions of chatchat-space Langchain-Chatchat are affected and fixed?
CVE-2026-7846 is a time-of-check time-of-use race condition vulnerability in chatchat-space Langchain-Chatchat. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: langchain-chatchat through 0.3.1.3 (GitHub advisory GHSA-x229-w2j4-h748). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Low (2.1, CVSS 4.0, from VulDB).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-7846?
chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou
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.
From the CVE record by VulDB, last updated May 5, 2026, 16:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| chatchat-space | Langchain-Chatchat | 0.3.1.0 0.3.1.1 0.3.1.2 0.3.1.3 |
As the CVE record by VulDB states it, last updated May 5, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langchain-chatchat | <= 0.3.1.3 | none listed | GHSA-x229-w2j4-h748 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 8, 2026. Summary: Langchain-Chatchat has a Race Condition in its OpenAI-Compatible File Upload API.
How severe is CVE-2026-7846?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | CVSS:4.0/AV:A/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P | VulDB |
| Low 2.6 | CVSS 3.1 | CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R | VulDB |
| Low 2.6 | CVSS 3.0 | CVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R | VulDB |
| Low 1.4 | CVSS 2.0 | AV:A/AC:H/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR | VulDB |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-7846 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, May 5, 2026)
- EPSS
- 0.17% probability of exploitation activity in the next 30 days, percentile 6.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Where are the vendor advisories and references?
- VDB-361125 | chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou vdb-entry, technical-description
- VDB-361125 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #807795 | chatchat-space Langchain-Chatchat 0.3.1.3 TOCTOU Race Condition / CWE-367 third-party-advisory
- https://github.com/chatchat-space/Langchain-Chatchat/issues/5463 issue-tracking
- https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-2-Silent-File-Overwrite.md exploit
- https://github.com/chatchat-space/Langchain-Chatchat/ product
Who found and reported it?
- Dem00 (VulDB User) (reporter)
- VulDB CNA Team (coordinator)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 5, 2026
- Published
- May 5, 2026, 16:00 UTC
- CVE record updated
- May 5, 2026, 16:11 UTC by VulDB
- NVD
- Deferred, last modified July 24, 2026, 08:10 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Langchain-Chatchat?
- Oct 20, 2026CVE-2026-75128 chatchat-space Langchain-Chatchat: missing authentication for a critical function
- May 5, 2026CVE-2026-7847 chatchat-space Langchain-Chatchat: weak randomness
- May 5, 2026CVE-2026-7845 chatchat-space Langchain-Chatchat: use of Weak Hash
- May 5, 2026CVE-2026-7844 chatchat-space Langchain-Chatchat: missing authentication for a critical function
- Jun 29, 2025CVE-2025-6855 chatchat-space Langchain-Chatchat: path traversal (reading or writing files outside the intended folder)
- Jun 29, 2025CVE-2025-6854 chatchat-space Langchain-Chatchat: path traversal (reading or writing files outside the intended folder)
- Jun 29, 2025CVE-2025-6853 chatchat-space Langchain-Chatchat: path traversal (reading or writing files outside the intended folder)
Every CVE in Langchain-Chatchat
Questions about CVE-2026-7846
Is CVE-2026-7846 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.17% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of chatchat-space Langchain-Chatchat are affected by CVE-2026-7846?
langchain-chatchat through 0.3.1.3, per the GitHub advisory GHSA-x229-w2j4-h748. The tables above give every range the sources list.
Which version fixes CVE-2026-7846?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-7846?
Low (2.1, CVSS 4.0, from VulDB). The severity table above shows each score with its source.
Where is the official record of CVE-2026-7846?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.