CVE-2023-38896: Harrison Chase langchain - Remote Code Execution
- Cve: CVE-2023-38896
- Name: Harrison Chase langchain - Remote Code Execution
- Description: An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.
- Impact: Remote attackers can execute arbitrary code on the system, potentially leading to full system compromise.
- Remediation: Update to the latest version of langchain where the issue is fixed.
- Vulnerability type: template_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.01822
- Epss percentile: 0.7933
- Assignee: [email protected]
- Published at: 2023-08-15T17:15:12Z
- Age in days: 1197
- Modified at: 2026-06-17T06:11:16Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-38896
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/hwchase17/langchain/issues/5872 | nvd | 2023-08-15 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/hwchase17/langchain/issues/5872 | Exploit, Issue Tracking, Patch |
| https://github.com/hwchase17/langchain/pull/6003 | Patch |
| https://twitter.com/llm_sec/status/1668711587287375876 | Third Party Advisory |
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, package | yes | /v1/repositories/langchain-ai/langchain |
| hwchase17/langchain | issues, pull | yes | /v1/repositories/hwchase17/langchain |
Index
- Repositories: 509
- Repositories high signal: 249
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-08-15
- 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