CVE-2023-39659
CRITICAL9.8EPSS 1.6%LangChain vulnerable to arbitrary code execution
Published: 8/15/2023Modified: 9/27/2024
Description
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 (2)
- PyPI/langchainfrom 0, < 0.0.325
- PyPI/langchainfrom 0, < 0.0.233
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (8)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-39659
- PATCHhttps://github.com/langchain-ai/langchain
- WEBhttps://github.com/langchain-ai/langchain/commit/cadfce295f8a33828fc635c2e5ea28b883e5c992
- WEBhttps://github.com/langchain-ai/langchain/issues/7700
- WEBhttps://github.com/langchain-ai/langchain/pull/12427
- WEBhttps://github.com/langchain-ai/langchain/pull/5640
- WEBhttps://github.com/langchain-ai/langchain/releases/tag/v0.0.325
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-147.yaml