CVE-2023-36281
CRITICAL 9.8CVSS 3.1langchain vulnerable to arbitrary code execution
An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to subclasses or a template.
- Published
- 22 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-7gfq-f96f-g85jPYSEC-2023-151
- Sources
- NVDJSONOSV GHSA-7gfq-f96f-g85jJSONOSV PYSEC-2023-151JSON
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 |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | 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.171:*:*:*:*:*:*:* |
= 0.0.171 | |
| OSV | PyPI | langchain | < 0.0.312 | 0.0.312 |
| OSV | PyPI | langchain | < 0.0.171 | 0.0.171 |
References
- https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://github.com/hwchase17/langchain/issues/4394 · Exploit, Issue Tracking, Vendor Advisory, WEB, EVIDENCE, REPORT, ADVISORY
- https://github.com/langchain-ai/langchain/releases/tag/v0.0.312 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-36281 · ADVISORY
- https://github.com/langchain-ai/langchain/pull/10252 · WEB
- https://github.com/langchain-ai/langchain/commit/22abeb9f6cc555591bf8e92b5e328e43aa07ff6c · WEB
- https://github.com/langchain-ai/langchain · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-151.yaml · WEB
- https://github.com/advisories/GHSA-7gfq-f96f-g85j · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 22 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Aug 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Aug 2023)