critical9.8
CVE-2023-38860
LangChain vulnerable to arbitrary code execution
Impact
An issue in LangChain prior to v.0.0.247 allows a remote attacker to execute arbitrary code via the prompt parameter.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | langchain | >= 0, < 0.0.247 | 0.0.247 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Langchain | Langchain | Version 0.0.231 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/hwchase17/langchain/issues/7641
- https://github.com/advisories/GHSA-fj32-q626-pjjc
- https://nvd.nist.gov/vuln/detail/CVE-2023-38860
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-145.yaml
- https://github.com/langchain-ai/langchain/issues/7641
- https://github.com/langchain-ai/langchain/pull/8092
- https://github.com/langchain-ai/langchain/pull/8425
- https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751