LangChainGHSA-h59x-p739-982c
LangChain directory traversal vulnerability
LowCVE-2024-28088 · Published Mar 4, 2024 · updated Dec 3, 2024
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| langchain PyPI | < 0.0.339 | 0.0.339 |
| langchain-core PyPI | < 0.1.30 | 0.1.30 |
Details and references
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.
- Severity from
- GitHub (reviewed advisory)
- Also known as
- CVE-2024-28088, PYSEC-2024-43, PYSEC-2024-45
- nvd.nist.gov/vuln/detail/CVE-2024-28088
- github.com/langchain-ai/langchain/pull/18600
- github.com/langchain-ai/langchain/commit/e1924b3e93d513ca950c72f8e80e1c133749fba5
- github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md
- github.com/langchain-ai/langchain
- github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py
- github.com/pypa/advisory-database/tree/main/vulns/langchain-core/PYSEC-2024-45.yaml
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2024-43.yaml
More LangChain advisories
All LangChain| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 12024 | A vulnerability was found in LangChain langchain_community 0.0.26. It has been classified as critical. Affected is the function load_local in the library libs/community/langchain_community/retrievers/tfidf.py of the component TFIDFRetriever. The manipulation leads to server-side request forgery. It CVE-2024-2057Critical9.8no fix yet | Critical9.8 | No fix yet |
| Feb 262024 | LangChain Experimental vulnerable to arbitrary code execution CVE-2024-27444Critical9.8fixed in 0.0.52 | Critical9.8 | 0.0.52 |
| Feb 262024 | langchain Server-Side Request Forgery vulnerability CVE-2024-0243Low3.7fixed in 0.1.0 | Low3.7 | 0.1.0 |
| Mar 262024 | LangChain's XMLOutputParser vulnerable to XML Entity Expansion CVE-2024-1455Medium5.9fixed in 0.1.35 | Medium5.9 | 0.1.35 |
| Apr 162024 | langchain vulnerable to path traversal CVE-2024-3571Medium6.5fixed in 0.0.353 | Medium6.5 | 0.0.353 |
| Jun 62024 | Denial of service in langchain-community CVE-2024-2965Medium4.2fixed in 0.2.5 | Medium4.2 | 0.2.5 |