chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou
Summary
| CVE | CVE-2026-7846 |
|---|---|
| State | PUBLISHED |
| Assigner | VulDB |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-05 16:16:19 UTC |
| Updated | 2026-05-05 19:06:58 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 1.2 LOW from [email protected]
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Problem Types: CWE-362 | CWE-367 | CWE-367 Time-of-check Time-of-use | CWE-362 Race Condition
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 1.2 | LOW | 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/C... |
| 4.0 | CNA | DECLARED | 2.1 | LOW | 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 |
| 3.1 | [email protected] | Primary | 2.6 | LOW | CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| 3.1 | CNA | DECLARED | 2.6 | LOW | 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 |
| 3.0 | CNA | DECLARED | 2.6 | LOW | 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 |
| 2.0 | [email protected] | Secondary | 1.4 | AV:A/AC:H/Au:S/C:N/I:P/A:N | |
| 2.0 | CNA | DECLARED | 1.4 | AV:A/AC:H/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR |
CVSS v4.0 Breakdown
Attack Vector
AdjacentAttack Complexity
HighAttack Requirements
NonePrivileges Required
LowUser Interaction
NoneConfidentiality
NoneIntegrity
LowAvailability
NoneSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS v3.1 Breakdown
Attack Vector
AdjacentAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
CVSS v3.0 Breakdown
Attack Vector
AdjacentAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.0/AV:A/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Chatchat-space | Langchain-Chatchat | affected 0.3.1.0 | Not specified |
| CNA | Chatchat-space | Langchain-Chatchat | affected 0.3.1.1 | Not specified |
| CNA | Chatchat-space | Langchain-Chatchat | affected 0.3.1.2 | Not specified |
| CNA | Chatchat-space | Langchain-Chatchat | affected 0.3.1.3 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-2-Silent-File... | [email protected] | github.com | |
| vuldb.com/vuln/361125/cti | [email protected] | vuldb.com | |
| vuldb.com/vuln/361125 | [email protected] | vuldb.com | |
| vuldb.com/submit/807795 | [email protected] | vuldb.com | |
| github.com/chatchat-space/Langchain-Chatchat/issues/5463 | [email protected] | github.com | |
| github.com/chatchat-space/Langchain-Chatchat | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Dem00 (VulDB User) (en)
CNA: VulDB CNA Team (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-05T00:00:00.000Z | Advisory disclosed |
| CNA | 2026-05-05T02:00:00.000Z | VulDB entry created |
| CNA | 2026-05-05T12:26:17.000Z | VulDB entry last update |
There are currently no legacy QID mappings associated with this CVE.