Description
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.)
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
levpachmanov/cve-2024-28088-poc ★ 0 · Mar 14, 2024
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | langchain | < 0.0.339 | 0.0.339 | GHSA-h59x-p739-982c |
| PyPI | langchain | < 0.1.11 | 0.1.11 | PYSEC-2024-43 |
| PyPI | langchain-core | < 0.1.30 | 0.1.30 | GHSA-h59x-p739-982c |
| PyPI | langchain-core | < 0.1.11 | 0.1.11 | PYSEC-2024-45 |