langchain-ai/langchain · Security
LangChain vulnerable to arbitrary code execution
- GHSA ID
- GHSA-prgp-w7vf-ch62
- CVE ID
- CVE-2023-39659
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 9.3 · 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
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.
CWEs
- CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-39659 ↗
- https://github.com/langchain-ai/langchain/issues/7700 ↗
- https://github.com/langchain-ai/langchain/pull/5640 ↗
- 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 ↗
- https://github.com/advisories/GHSA-prgp-w7vf-ch62 ↗