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 con
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | langchain | < 0.0.339 | 0.0.339 |
| Python (PyPI) | langchain-core | < 0.1.11 | 0.1.11 |
References
- https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md
- https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py
- https://nvd.nist.gov/vuln/detail/CVE-2024-28088
- https://github.com/langchain-ai/langchain/pull/18600
- https://github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5
- https://github.com/langchain-ai/langchain
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml
- https://github.com/advisories/GHSA-h59x-p739-982c
- Weakness (CWE)
-- Platform
- Python (PyPI)
- Package
langchain, langchain-core- Disclosed
- 04.03.2024
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2024-43 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-h59x-p739-982c - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2024-45 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: langchain
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 22
- First → latest
- 04.2023 06.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 12
- High 4
- Medium 4
- Low 2
Disclosures per year
- 2023: 15
- 2024: 5
- 2025: 0
- 2026: 2
-
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 con this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.