CVE-2024-28088
LangChain Directory Traversal Vulnerability
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.)
INFO
Published Date :
March 4, 2024, 12:15 a.m.
Last Modified :
Jan. 8, 2025, 4:13 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.2
Exploitability Score :
2.8
Public PoC/Exploit Available at Github
CVE-2024-28088 has a 4 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-28088
.
URL | Resource |
---|---|
https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md | Exploit |
https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py | Product Third Party Advisory |
https://github.com/langchain-ai/langchain/pull/18600 | Exploit Issue Tracking Patch |
https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md | Exploit Third Party Advisory |
https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py | Product |
https://github.com/langchain-ai/langchain/pull/18600 | Exploit Issue Tracking Patch |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
None
Python HTML
A centralized repository of standalone security patches for open source libraries.
appsec backport cve devsecops fix hotfix open-source patch protection remediation seal security update upgrade vulnerability
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-28088
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-28088
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jan. 08, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Added CWE NIST CWE-22 Added CPE Configuration OR *cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:* versions up to (excluding) 0.1.12 Changed Reference Type https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py No Types Assigned https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py Product Changed Reference Type https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py No Types Assigned https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py Product Changed Reference Type https://github.com/langchain-ai/langchain/pull/18600 No Types Assigned https://github.com/langchain-ai/langchain/pull/18600 Exploit, Issue Tracking, Patch Changed Reference Type https://github.com/langchain-ai/langchain/pull/18600 No Types Assigned https://github.com/langchain-ai/langchain/pull/18600 Exploit, Issue Tracking, Patch Changed Reference Type https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md No Types Assigned https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md Exploit, Third Party Advisory Changed Reference Type https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md No Types Assigned https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md Exploit, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py Added Reference https://github.com/langchain-ai/langchain/pull/18600 Added Reference https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 26, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-31 Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Mar. 13, 2024
Action Type Old Value New Value Changed 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. 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.) Added Reference MITRE https://github.com/langchain-ai/langchain/pull/18600 [No types assigned] -
CVE Received by [email protected]
Mar. 04, 2024
Action Type Old Value New Value Added 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. Added Reference MITRE https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md [No types assigned] Added Reference MITRE https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-28088
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-28088
weaknesses.