CVE-2024-28088
LangChain directory traversal vulnerability
EPSS 13.4%
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.)
How to fix CVE-2024-28088
To remediate CVE-2024-28088, upgrade the affected package to a fixed version below.
- PyPI/langchain—upgrade to 0.0.339 or later
- —upgrade to 0.1.11 or later
- —upgrade to 0.1.30 or later
- —upgrade to 0.1.11 or later
Is CVE-2024-28088 being exploited?
Moderate — EPSS is 13.4%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (4)
- from 0, < 0.0.339
- from 0, < 0.1.11
- from 0, < 0.1.30
- from 0, < 0.1.11