Skip to content
HighVulnerabilityLLM-specific

CVE-2024-28088: LangChain directory traversal in load_chain path parameter

Identifier
CVE-2024-28088
Published
Record updated
View JSON
Affected
  • langchain < 0.0.339, fixed in 0.0.339, released November 20, 2023, 105 days before disclosure
  • langchain-core >= 0, < 0.1.30, fixed in 0.1.30, released March 6, 2024, 3 days after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.7%

Summary

CVE-2024-28088 affects LangChain through 0.1.10. An actor who can control the final part of the path parameter in a load_chain call can use ../ directory traversal to bypass the intended restriction on loading configurations only from the hwchase17/langchain-hub GitHub repository. The source says the outcome can be disclosure of an API key for a large language model online service, or remote code execution.

Mitigation

A patch is available as of release 0.1.29 of langchain-core.