AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

LangChainGHSA-h59x-p739-982c

LangChain directory traversal vulnerability

LangChain

CVE-2024-28088 · Published Mar 4, 2024 · updated Dec 3, 2024

Low
Fix: upgrade to 0.0.339 or later (2 fixed versions below)
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
langchain
PyPI
< 0.0.3390.0.339
langchain-core
PyPI
< 0.1.300.1.30
Details and references

More LangChain advisories

All LangChain