CVE-2023-39659
criticalpriority · track · 40EPSS 0.015 · 75 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-prgp-w7vf-ch62LangChain vulnerable to arbitrary code execution2023-08-15ghsa · osvUS
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.
- PYSEC-2023-1472023-08-15vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-39659/cnnvd
- https://github.com/langchain-ai/langchain/issues/7700cnnvd
- https://github.com/langchain-ai/langchain/pull/5640cnnvd
- https://github.com/langchain-ai/langchain/issues/7700enisa_euvd
- https://github.com/langchain-ai/langchain/pull/5640enisa_euvd
- https://github.com/langchain-ai/langchain/issues/7700ExploitIssue TrackingThird Party Advisorynvd
- https://github.com/langchain-ai/langchain/pull/5640Issue TrackingPatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan