langchain-ai/langchain · Security
LangChain vulnerable to arbitrary code execution
- GHSA ID
- GHSA-92j5-3459-qgp4
- CVE ID
- CVE-2023-38896
- 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 Harrison Chase langchain before version 0.0.236 allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.
CWEs
- CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-38896 ↗
- https://github.com/hwchase17/langchain/issues/5872 ↗
- https://github.com/hwchase17/langchain/pull/6003 ↗
- https://twitter.com/llm_sec/status/1668711587287375876 ↗
- https://github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137 ↗
- https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-146.yaml ↗
- https://github.com/advisories/GHSA-92j5-3459-qgp4 ↗