CVE-2023-39659: LangChain vulnerable to arbitrary code execution
CVE-2023-39659 · Severity: low · CVSS 3.1 · Published 2023-08-15
An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.
Yes. langchain (PyPI): upgrade to 0.0.233, 0.0.325 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2023-39659?
Check whether you run langchain (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
langchain (PyPI): upgrade to 0.0.233, 0.0.325 or later