# CVE-2026-51884: The /knowledgebase/uploadtempdocs temporary document upload endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-01T00:00:00.000Z
- Modified: 2026-10-05T19:17:21.813Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

The /knowledge_base/upload_temp_docs temporary document upload endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal. By crafting malicious filenames, an attacker can write files to arbitrary locations on the server, bypassing the intended restrictions on the temporary directory.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/chatchat-space/Langchain-Chatchat/issues/5466> (exploit)
- <https://gist.github.com/Ro1ME/da028c9ce13dd888e265b9bef01d6eca>

## Sources

- CVE List: [CVE-2026-51884](https://www.cve.org/CVERecord?id=CVE-2026-51884), CVE Terms of Use, modified 2026-10-05
- NVD: [CVE-2026-51884](https://nvd.nist.gov/vuln/detail/CVE-2026-51884), Public domain, modified 2026-10-05

---

Page: https://cve.day/CVE-2026-51884 · Whole record: https://cve.day/CVE-2026-51884.json · Rebuilt by cve.day 2026-11-25T22:59:41.889Z
