Skip to main content
← All vulnerabilities
CVE-2024-28088PYSEC-2024-45GHSA-H59X-P739-982CPYSEC-2024-43

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_ch

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.11, 0.0.339, 0.1.30
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • langchain-corePyPI

    fixed in 0.1.11

  • langchainPyPI

    fixed in 0.1.11

  • langchainPyPI

    fixed in 0.0.339

  • langchain-corePyPI

    fixed in 0.1.30

References 4

GitHub · PinkDraconian/PoC-Langchain-RCE

GitHub · langchain-ai/langchain

GitHub · levpachmanov/cve-2024-28088-poc