Vulnerability Details : CVE-2023-39659
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.
Vulnerability category: Execute code
Products affected by CVE-2023-39659
- cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-39659
0.50%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 76 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-39659
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2023-39659
-
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2023-39659
-
https://github.com/langchain-ai/langchain/issues/7700
Prompt injection which leads to arbitrary code execution · Issue #7700 · langchain-ai/langchain · GitHubExploit;Issue Tracking;Third Party Advisory
-
https://github.com/langchain-ai/langchain/pull/5640
Replace exec with wasm_exec by Jflick58 · Pull Request #5640 · langchain-ai/langchain · GitHubIssue Tracking;Patch
Jump to