CVE-2024-28088
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.)
How to fix
- langchain langchain0.1.12 or later
- langchain0.0.339, 0.1.11 or later
- langchain-core0.1.30, 0.1.11 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| langchain langchain | v < 0.1.12 | 0.1.12 |
| langchainPyPI | v < 0.0.339, v < 0.1.11 | 0.0.339, 0.1.11 |
| langchain-corePyPI | v < 0.1.30, v < 0.1.11 | 0.1.30, 0.1.11 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.