INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2023-34541

Langchain vulnerable to arbitrary code execution

CVE-2023-34541 ยท 2023-06-20 critical

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

Source: GitHub Advisory Database, used under CC BY 4.0.