# CVE-2025-6853: chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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.64%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-29T07:31:05.027Z
- Modified: 2026-07-07T17:56:55.941Z
- Also known as: GHSA-qmgv-j263-qr33, PYSEC-2026-1513
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability classified as critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file /knowledge_base/upload_temp_docs of the component Backend. The manipulation of the argument flag leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

(As written by CVE List.)

## Affected

- chatchat-space Langchain-Chatchat: 0.3.0; 0.3.1; up to 0.3.1
- langchain-chatchat (PyPI): up to 0.3.1.3

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- GitHub: CVSS:3.1 6.3 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/chatchat-space/Langchain-Chatchat/issues/5352> (exploit, issue-tracking, web)
- <https://vuldb.com/?id.314325> (technical-description, third-party-advisory, vdb-entry, web)
- <https://vuldb.com/?ctiid.314325> (permissions-required, signature, vdb-entry, web)
- <https://vuldb.com/?submit.601155> (third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6853> (advisory)
- <https://github.com/chatchat-space/Langchain-Chatchat> (package)
- <https://pypi.org/project/langchain-chatchat> (package)
- <https://github.com/advisories/GHSA-qmgv-j263-qr33> (advisory)

## Sources

- CVE List: [CVE-2025-6853](https://www.cve.org/CVERecord?id=CVE-2025-6853), CVE Terms of Use, modified 2025-06-30
- GitHub Advisory Database: [GHSA-qmgv-j263-qr33](https://github.com/advisories/GHSA-qmgv-j263-qr33), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-6853](https://nvd.nist.gov/vuln/detail/CVE-2025-6853), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1513](https://osv.dev/vulnerability/PYSEC-2026-1513), CC-BY-4.0, modified 2026-07-07

---

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