CVE-2024-28088Langchain
High 8.1
Follow: this CVE · Langchain · Langchain We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.1
- EPSS
- 2.3% probability of exploitation in 30 days · percentile 84
- Auth required
- Yes
- Published
- Mar 4, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
What happens
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.)
What to do
- Apply the vendor's security update for Langchain.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain |
< 0.0.339 |
0.0.339 |
pip install "langchain>=0.0.339" |
| PyPI | langchain |
< 0.1.11 |
0.1.11 |
pip install "langchain>=0.1.11" |
| PyPI | langchain-core |
< 0.1.30 |
0.1.30 |
pip install "langchain-core>=0.1.30" |
| PyPI | langchain-core |
< 0.1.11 |
0.1.11 |
pip install "langchain-core>=0.1.11" |
Per OSV / GitHub Advisories (GHSA-h59x-p739-982c, PYSEC-2024-43, PYSEC-2024-45). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain | < 0.1.12 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Product Third Party Advisory
- github.com Exploit Issue Tracking Patch