CVE-2023-39659

CRITICAL

langchain < 0.0.232 - Remote Code Execution via PythonAstREPLTool._run

Title source: llm
STIX 2.1

Description

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.

References (2)

Core 2
Core References
Exploit, Issue Tracking, Third Party Advisory
https://github.com/langchain-ai/langchain/issues/7700

Scores

CVSS v3 9.8
EPSS 0.0127
EPSS Percentile 66.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-74
Status published
Products (2)
langchain/langchain < 0.0.232
pypi/langchain 0 - 0.0.325PyPI
Published Aug 15, 2023
Tracked Since Feb 18, 2026