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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| langchain (PyPI) | before 0.0.325, before 0.0.233 | GitHub Advisory Database, PyPA Advisory Database |
| langchain langchain | up to 0.0.232 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical 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 |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| https://github.com/langchain-ai/langchain/issues/7700 | evidence, exploit, issue-tracking, report, third-party-advisory, web | |
| https://github.com/langchain-ai/langchain/pull/5640 | fix, issue-tracking, patch, report, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-39659 | advisory | |
| https://github.com/langchain-ai/langchain/pull/12427 | web | |
| https://github.com/langchain-ai/langchain/commit/cadfce295f8a33828fc635c2e5ea28b883e5c992 | web | |
| https://github.com/langchain-ai/langchain | package | |
| https://github.com/langchain-ai/langchain/releases/tag/v0.0.325 | web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-147.yaml | web | |
| https://github.com/advisories/GHSA-prgp-w7vf-ch62 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-39659 changed 2024-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-prgp-w7vf-ch62 changed 2024-09-27 | CC-BY-4.0 |
| NVD | CVE-2023-39659 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2023-147 changed 2026-06-10 | CC-BY-4.0 |