CVE-2023-38860
CRITICAL 9.8CVSS 3.1LangChain vulnerable to arbitrary code execution
An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.
- Published
- 15 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-fj32-q626-pjjcPYSEC-2023-145
- Sources
- NVDJSONOSV GHSA-fj32-q626-pjjcJSONOSV PYSEC-2023-145JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | langchain | langchaincpe:2.3:a:langchain:langchain:0.0.231:*:*:*:*:*:*:* |
= 0.0.231 | |
| OSV | PyPI | langchain | < 0.0.247 | 0.0.247 |
References
- https://github.com/hwchase17/langchain/issues/7641 · Exploit, Issue Tracking, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-38860 · ADVISORY
- https://github.com/langchain-ai/langchain/issues/7641 · WEB, EVIDENCE, REPORT
- https://github.com/langchain-ai/langchain/pull/8092 · WEB
- https://github.com/langchain-ai/langchain/pull/8425 · WEB
- https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245 · WEB
- https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751 · WEB
- https://github.com/hwchase17/langchain · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-145.yaml · WEB
- https://github.com/advisories/GHSA-fj32-q626-pjjc · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 15 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Aug 2023)