Skip to content
OpenAdvisories
High · 8.1 Public exploit CVE-2024-28088 EUVD-2024-0085GHSA-h59x-p739-982cPYSEC-2024-43PYSEC-2024-45

LangChain directory traversal vulnerability

Published Mar 3, 2024 · Updated Aug 26, 2024 · Assigned by mitre

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

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI langchain < 0.0.339 0.0.339 GHSA-h59x-p739-982c
PyPI langchain < 0.1.11 0.1.11 PYSEC-2024-43
PyPI langchain-core < 0.1.30 0.1.30 GHSA-h59x-p739-982c
PyPI langchain-core < 0.1.11 0.1.11 PYSEC-2024-45

References