Skip to content
Fencer Vulns
high 8.1

CVE-2024-28088 json

LangChain directory traversal vulnerability

published 2024-03-03 2 y ago modified 2026-06-17 4 mo ago also GHSA-h59x-p739-982c , PYSEC-2024-43 , PYSEC-2024-45 , EUVD-2024-0085

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

Summary

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

Patch / fix

  • pypi langchain 0.0.339, 0.1.11
  • pypi langchain-core 0.1.11, 0.1.30
  • langchain langchain 0.1.12

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.73% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/langchain-ai/langchain/pull/18600 referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/PinkDraconian/PoC-Langchain-RCE/blob/main/README.md referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
pypi langchain
<0.0.339
<0.1.11
0.0.339
0.1.11
pypi langchain-core
<0.1.30
<0.1.11
0.1.30
0.1.11

Affected products

  • langchain langchain

Classification

Weakness
  • CWE-31 Path Traversal: 'dir\..\..\filename'
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.