Vulnerabilities · 2024 · Langchain
CVE-2024-28088
Langchain vulnerability
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.)
Affected products
Langchain. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Langchain runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/langchain-ai/langchain/pull/18600 · Exploit
- github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md · Exploit
- github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2024-28088
- cve.org/CVERecord?id=CVE-2024-28088
More vulnerabilities in Langchain products
CVE-2025-68665CVE-2025-68664CVE-2025-2828CVE-2024-58340CVE-2024-46946CVE-2024-38459CVE-2024-27444CVE-2024-21513All 34
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.