CVE-2026-51882 Details
Description
The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames.
A directory traversal vulnerability has been identified in the OpenAI-compatible file upload endpoint `/v1/files` of Langchain-Chatchat version 0.3.0. This vulnerability allows an attacker to write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames. The issue arises because the endpoint does not properly validate or sanitize user-provided file names, enabling files to escape the intended directory structure.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 1, 2026CISA-ADP
Assessed Oct 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3 | CISA-ADP | ExploitTechnical Description |
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5468 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3 | [email protected] | ExploitTechnical Description |
| https://github.com/chatchat-space/Langchain-Chatchat/issues/5468 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Langchain-Chatchat | 0.3.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 7, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2026 | New CVE Received | [email protected] |
Volerion