CVE-2023-36095: Harrison Chase langchain - Command Injection
- Cve: CVE-2023-36095
- Name: Harrison Chase langchain - Command Injection
- Description: An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.
- Impact: Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
- Remediation: Update to the latest version of langchain where this issue is fixed.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0117
- Epss percentile: 0.68222
- Assignee: [email protected]
- Published at: 2023-08-05T03:15:13Z
- Age in days: 1207
- Modified at: 2026-07-09T01:18:28Z
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-36095
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/langchain-ai/langchain/issues/5872 | nvd | 2023-08-05 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/langchain-ai/langchain/issues/5872 | nvd | Exploit, Issue Tracking, Vendor Advisory |
| https://github.com/hwchase17/langchain | nvd | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langchain:langchain | = 0.0.194 | no | nvd | /v1/products/langchain/langchain |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langchain-ai/langchain | commit, issues, package, pull | yes | /v1/repositories/langchain-ai/langchain |
Index
- Repositories: 509
- Repositories high signal: 249
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-08-05
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts