Vulnerability · Published Mar 3, 2024 · Assigned by mitre

CVE-2024-28088

High 8.1

In plain English

A high-severity security flaw in the langchain package (PyPI). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 78% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.7%top 22.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlangchain0.0.339GHSA-h59x-p739-982c
PyPIlangchain0.1.11PYSEC-2024-43
PyPIlangchain-core0.1.30GHSA-h59x-p739-982c
PyPIlangchain-core0.1.11PYSEC-2024-45

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-31 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

References