LangChainGHSA-92j5-3459-qgp4
LangChain vulnerable to arbitrary code execution
Critical9.8CVE-2023-38896 · Published Aug 15, 2023 · updated Sep 27, 2024
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| langchain PyPI | < 0.0.236 | 0.0.236 |
Details and references
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.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-74, CWE-94
- Also known as
- CVE-2023-38896, PYSEC-2023-146
- nvd.nist.gov/vuln/detail/CVE-2023-38896
- github.com/hwchase17/langchain/issues/5872
- github.com/hwchase17/langchain/pull/6003
- github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137
- github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e
- github.com/langchain-ai/langchain
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-146.yaml
- twitter.com/llm_sec/status/1668711587287375876
More LangChain advisories
All LangChain| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 152023 | LangChain vulnerable to arbitrary code execution CVE-2023-38860Critical9.8fixed in 0.0.247 | Critical9.8 | 0.0.247 |
| Aug 152023 | LangChain vulnerable to arbitrary code execution CVE-2023-39659Critical9.8fixed in 0.0.325 | Critical9.8 | 0.0.325 |
| Aug 222023 | langchain vulnerable to arbitrary code execution CVE-2023-36281Critical9.8fixed in 0.0.312 | Critical9.8 | 0.0.312 |
| Aug 52023 | langchain Code Injection vulnerability CVE-2023-36095Critical9.8fixed in 0.0.236 | Critical9.8 | 0.0.236 |
| Sep 12023 | Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library CVE-2023-39631Critical9.8fixed in 0.0.308 | Critical9.8 | 0.0.308 |
| Jul 62023 | langchain vulnerable to arbitrary code execution CVE-2023-36188Critical9.8fixed in 0.0.247 | Critical9.8 | 0.0.247 |