critical9.8
CVE-2023-39659
LangChain vulnerable to arbitrary code execution
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | langchain | < 0.0.325 | 0.0.325 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Langchain | Langchain | through 0.0.232 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/langchain-ai/langchain/issues/7700
- https://github.com/langchain-ai/langchain/pull/5640
- https://github.com/advisories/GHSA-prgp-w7vf-ch62
- https://nvd.nist.gov/vuln/detail/CVE-2023-39659
- https://github.com/langchain-ai/langchain/pull/12427
- https://github.com/langchain-ai/langchain/commit/cadfce295f8a33828fc635c2e5ea28b883e5c992
- https://github.com/langchain-ai/langchain/releases/tag/v0.0.325
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-147.yaml