chatchat-space Langchain-Chatchat OpenAI-Compatible File Upload API openai_routes.py files toctou
Key facts
- Attack vector
- Adjacent network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chatchat-space | Langchain-Chatchat | 0.3.1.0; 0.3.1.1; 0.3.1.2; 0.3.1.3 | — | No fix listed | CNA |
| — | langchain-chatchat (PyPI) | up to 0.3.1.3 | — | No fix listed | GHSA-x229-w2j4-h748 |
- Langchain-Chatchat Vendorchatchat-space Affected 0.3.1.0; 0.3.1.1; 0.3.1.2; 0.3.1.3 Fixed in — No fix listed CNA
- langchain-chatchat (PyPI) Vendor— Affected up to 0.3.1.3 Fixed in — No fix listed GHSA-x229-w2j4-h748
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:chatchat-space:langchain-chatchat:*:*:*:*:*:*:*:* | — | — | chatchat-space |
- cpe:2.3:a:chatchat-space:langchain-chatchat:*:*:*:*:*:*:*:* Versions — — ·chatchat-space
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-7846
- 2026-10-03 Alias added: GHSA-x229-w2j4-h748
References
Exploit 1
More chatchat-space vulnerabilities
- TI-2026-76659 Missing authentication in Langchain-Chatchat lets attackers run commands CVSS 4.0CRITICAL 9.3
- TI-2026-06902 chatchat-space Langchain-Chatchat Compatible File Service openai_routes.py delete_file missing authentication CVSS 4.0MEDIUM 5.3
- TI-2025-06227 chatchat-space Langchain-Chatchat files path traversal CVSS 4.0MEDIUM 5.3
- TI-2025-06226 chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal CVSS 4.0MEDIUM 5.3
- TI-2025-06228 chatchat-space Langchain-Chatchat file path traversal CVSS 4.0MEDIUM 5.1
- TI-2026-06905 chatchat-space Langchain-Chatchat Uploaded File openai_routes.py _get_file_id random values CVSS 4.0LOW 2.1
Sources
- CVE-2026-7846 · CVE Program
- CVE-2026-7846 · NVD
- FIRST EPSS
- GHSA-x229-w2j4-h748 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences