{"data":{"id":"236e6fa2-5f05-42dc-9e41-16ee52660210","title":"CVE-2023-36281: An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This…","summary":"CVE-2023-36281 affects langchain v0.0.171. A remote attacker can execute arbitrary code by supplying a crafted JSON file to load_prompt, related to __subclasses__ or a template. The weakness is classified as CWE-94 (Improper Control of Generation of Code).","solution":"Fixed in v0.0.312, per the release tag referenced in the source (https://github.com/langchain-ai/langchain/releases/tag/v0.0.312).","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-36281","publishedAt":"2023-08-22T23:16:36.457Z","cveId":"CVE-2023-36281","cweIds":["CWE-94","CWE-94"],"cvssScore":"9.8","cvssSeverity":"critical","severity":"critical","attackType":["other"],"issueType":"vulnerability","affectedPackages":["langchain@< 0.0.312 (fixed: 0.0.312)"],"affectedPackageNames":["langchain"],"affectedPackageRefs":["pypi:langchain"],"affectedVendors":["LangChain"],"affectedVendorsRaw":["LangChain"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"langchain remote code execution through JSON file in load_prompt","headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.0344,"epssCheckedAt":"2026-11-04T00:12:27.299Z","kevDateAdded":null,"advisoryAliases":["GHSA-7gfq-f96f-g85j"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T03:56:48.857Z","patchAvailable":true,"disclosureDate":null,"fixReleasedAt":"2023-10-10T19:36:01.015Z","daysToFix":49,"fixCheckedAt":"2026-10-29T21:46:48.533Z","capecIds":["CAPEC-242"],"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity","availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"langchain","fixedVersion":"0.0.312","matchedVersion":"0.0.312","fixReleasedAt":"2023-10-10T19:36:01.015Z","daysToFix":49,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:46:48.383Z"}]}}