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

Medium 5.3 Published Updated

Remote attackers can exploit a path traversal vulnerability in the upload_temp_docs function to read or modify arbitrary files on the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-6853?

CVE-2025-6853 is a medium-severity path traversal vulnerability in chatchat-space Langchain-Chatchat, published on 29 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2025-6853?

3 open source packages ship an affected version, including langchain-chatchat. It affects 1 product.

PackageAffectedFixed in
langchain-chatchat PyPIAll versions to 0.3.1.3None
langchain-chatchat PyPIAll versions to 0.3.1.3None
langchain-chatchat PyPIAll versions to 0.3.1.3None

Products include Chatchat-Space Langchain-Chatchat.

How do I fix CVE-2025-6853?

No fix has been published for CVE-2025-6853 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-6853 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6853 exists.

Sources

Also known as GHSA-qmgv-j263-qr33, PYSEC-2026-1513.

Is CVE-2025-6853 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free