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

CVE-2023-36188: langchain vulnerable to arbitrary code execution

criticalCVSS 3.1 9.8GHSA-57fc-8q82-gfp3

An issue in langchain allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.

Published Jul 6, 2023 · Updated Jul 6, 2026

Affected packages

langchain

Ecosystem
PyPI
Affected
< 0.0.247
Fixed in
0.0.247
Check
pip show langchain

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

An issue in langchain allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.

Credited to cookesan.

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