Browse / Unsafe Model Loading and Supply Chain / CVE-2023-34541
Langchain vulnerable to arbitrary code execution
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- langchain (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.9% chance of exploitation in 30 days
How it works, in short
Loading a crafted prompt through LangChain's load_prompt function causes attacker-supplied code to run on the host. (Our summary, written by a model. The source text is below.)
Details
Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34541
- https://github.com/langchain-ai/langchain/issues/4849
- https://github.com/langchain-ai/langchain/issues/4849#issuecomment-1697896569
- https://github.com/langchain-ai/langchain/pull/8425
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751
- https://github.com/langchain-ai/langchain
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-92.yaml
Source: GitHub Advisory Database, used under CC BY 4.0.