langchain
Affected
- introduced
0, fixed0.0.339(ecosystem)
Fixed versions
0.0.339
Fix
- Fixed version
0.0.339pip install --upgrade langchain==0.0.339
Advisory
Also known as: CVE-2024-28088, PYSEC-2024-43, PYSEC-2024-45
LangChain directory traversal vulnerability
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.
Low Basis: The source's own band: LOW
0, fixed 0.0.339 (ecosystem)0.0.339
0.0.339pip install --upgrade langchain==0.0.3390, fixed 0.1.30 (ecosystem)0.1.30
0.1.30pip install --upgrade langchain-core==0.1.30Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0