Path Traversal in Langchain
CVE-2024-28088
LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution. (A patch is available as of release 0.1.29 of langchain-core.)
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.017, 77.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- levpachmanov/cve-2024-28088-poc (last pushed 2024-03-14)
Also mentioned in 8 other repositories (ARPSyndicate/cve-scores, franzheffa/video-search-and-summarization-viize, gil-feldman-glidetalk/video-search-and-summarization, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md (Exploit, Third Party Advisory)
- github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f… (Product, Third Party Advisory)
- github.com/langchain-ai/langchain/pull/18600 (Exploit, Patch, Issue Tracking)
This CVE has public exploit evidence. See the latest CVEs with public exploits.