Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · LangChain

CVE-2023-29374: LangChain vulnerable to code injection

criticalCVSS 4.0 9.3 · 3.1 9.8GHSA-fprp-p869-w6q2

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec() method.

Published Apr 5, 2023 · Updated Sep 30, 2024

Affected packages

langchain

Ecosystem
PyPI
Affected
<= 0.0.131
Fixed in
No patched version yet
Check
pip show langchain

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec() method.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More LangChain vulnerabilities

All LangChain entries