CVE-2023-39659
JSON

9.8critical

LangChain vulnerable to arbitrary code execution

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.52% (higher than 75% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-prgp-w7vf-ch62PYSEC-2023-147

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
langchain (PyPI)before 0.0.325, before 0.0.233GitHub Advisory Database, PyPA Advisory Database
langchain langchainup to 0.0.232NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-74

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

An issue in langchain langchain-ai before version 0.0.325 allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

NVD (es)

Un problema en langchain langchain-ai v.0.0.232 y anteriores permite a un atacante remoto ejecutar código arbitrario a través de un script manipulado en el componente PythonAstREPLTool._run.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-39659 changed 2024-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-prgp-w7vf-ch62 changed 2024-09-27CC-BY-4.0
NVDCVE-2023-39659 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2023-147 changed 2026-06-10CC-BY-4.0