{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-36281","id":"CVE-2023-36281","title":"langchain vulnerable to arbitrary code execution","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.","descriptionLong":"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":"2023-08-22T00:00:00.000Z","updated":"2026-10-28T02:30:47.673671508Z","reserved":"2023-06-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.312","<0.0.171"],"fixed":["0.0.312","0.0.171"],"advisory":"GHSA-7gfq-f96f-g85j"}],"cwes":["CWE-94"],"aliases":["GHSA-7gfq-f96f-g85j","PYSEC-2023-151"],"references":[{"url":"https://github.com/hwchase17/langchain/issues/4394","tags":["x_transferred","Exploit","Issue Tracking","Vendor Advisory","report","web","evidence","advisory"]},{"url":"https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55","tags":["x_transferred","Exploit","Third Party Advisory","web","evidence"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/v0.0.312","tags":["x_transferred","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36281.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36281","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain/pull/10252","tags":["web"]},{"url":"https://github.com/langchain-ai/langchain/commit/22abeb9f6cc555591bf8e92b5e328e43aa07ff6c","tags":["web"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-151.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7gfq-f96f-g85j","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.03412,"epssPercentile":0.89143,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-36281","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36281","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-36281","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7gfq-f96f-g85j","ok":true,"note":"GHSA-7gfq-f96f-g85j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-36281","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}