Vulnerability record · CVE-2023-36281 · published 22 August 2023
CVE-2023-36281: Langchain code injection vulnerability
Langchain · Langchain
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.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55 | ExploitThird Party Advisory |
| https://github.com/hwchase17/langchain/issues/4394 | ExploitIssue TrackingVendor Advisory |
| https://github.com/langchain-ai/langchain/releases/tag/v0.0.312 | |
| https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55 | ExploitThird Party Advisory |
| https://github.com/hwchase17/langchain/issues/4394 | ExploitIssue TrackingVendor Advisory |
| https://github.com/langchain-ai/langchain/releases/tag/v0.0.312 |
Track CVE-2023-36281 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-36281), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.