CVE-2024-28088

High

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.)

SeverityHigh
CVSS8.1
Exploit probability—
ProductLangchain
PublishedMar 4, 2024
First seenMar 4, 2024
Weakness typeCWE-31CWE-31

How to fix

Update
  • langchain langchain0.1.12 or later
  • langchain0.0.339, 0.1.11 or later
  • langchain-core0.1.30, 0.1.11 or later

Affected products

ProductAffected versionsFixed in
langchain langchainv < 0.1.120.1.12
langchainPyPIv < 0.0.339, v < 0.1.110.0.339, 0.1.11
langchain-corePyPIv < 0.1.30, v < 0.1.110.1.30, 0.1.11

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.