CVE-2024-28088 Details
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.)
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 7, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py | CVE | ProductThird Party Advisory |
| https://github.com/langchain-ai/langchain/pull/18600 | CVE | ExploitIssue TrackingPatch |
| https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md | CVE | ExploitThird Party Advisory |
| https://github.com/langchain-ai/langchain/blob/f96dd57501131840b713ed7c2e86cbf1ddc2761f/libs/core/langchain_core/utils/loading.py | [email protected] | ProductThird Party Advisory |
| https://github.com/langchain-ai/langchain/pull/18600 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-31 | Path Traversal: 'dir\..\..\filename' | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| langchain langchain | < 0.1.12 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jan 8, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Aug 26, 2024 | CVE Modified | CISA-ADP |
| May 14, 2024 | CVE Modified | [email protected] |
| Mar 13, 2024 | CVE Modified | [email protected] |
| Mar 4, 2024 | New CVE Received | [email protected] |