{"id":"CVE-2025-6853","aliases":["CVE-2025-6853","GHSA-qmgv-j263-qr33","PYSEC-2026-1513"],"related":[],"kind":"vulnerability","state":"published","title":"chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Es wurde eine Schwachstelle in chatchat-space Langchain-Chatchat bis 0.3.1 entdeckt. Sie wurde als kritisch eingestuft. Es betrifft die Funktion upload_temp_docs der Datei /knowledge_base/upload_temp_docs der Komponente Backend. Dank der Manipulation des Arguments flag mit unbekannten Daten kann eine path traversal-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk erfolgen. Der Exploit steht zur öffentlichen Verfügung.","source":"cvelist"},{"lang":"es","text":"Se ha detectado una vulnerabilidad crítica en el chatchat-space Langchain-Chatchat (hasta la versión 0.3.1). Esta vulnerabilidad afecta a la función upload_temp_docs del archivo /knowledge_base/upload_temp_docs del componente Backend. La manipulación del indicador de argumento provoca un path traversal. El ataque puede ejecutarse en remoto. Se ha hecho público el exploit y puede que sea utilizado.","source":"nvd"}],"published":"2025-06-29T07:31:05.027Z","modified":"2026-07-07T17:56:55.941Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"0.3.0","status":"affected"},{"version":"0.3.1","status":"affected"}],"vendor":"chatchat-space","product":"Langchain-Chatchat","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.1.3"}],"ecosystem":"PyPI","package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"0.3.1"}],"vendor":"chatchat-space","product":"langchain-chatchat","cpe":"cpe:2.3:a:chatchat-space:langchain-chatchat:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.1.3"}],"ecosystem":"PyPI","package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.314325","tags":["technical-description","third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.314325","tags":["permissions-required","signature","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://vuldb.com/?submit.601155","tags":["third-party-advisory","vdb-entry","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5352","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6853","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/chatchat-space/Langchain-Chatchat","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/langchain-chatchat","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-qmgv-j263-qr33","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-06-30T15:44:38.862Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-6853","url":"https://www.cve.org/CVERecord?id=CVE-2025-6853","licence":"CVE Terms of Use","modified":"2025-06-30T15:44:45.431Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qmgv-j263-qr33","url":"https://github.com/advisories/GHSA-qmgv-j263-qr33","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:55.941Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-6853","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6853","licence":"Public domain","modified":"2026-06-17T10:02:41.803Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1513","url":"https://osv.dev/vulnerability/PYSEC-2026-1513","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:46.986Z"}],"updatedAt":"2026-11-25T22:59:00.356Z","epss":{"score":0.00637,"percentile":0.51883,"date":"2026-12-01T12:00:22.000Z"}}