{"id":"CVE-2023-38860","aliases":["CVE-2023-38860","GHSA-fj32-q626-pjjc","PYSEC-2023-145"],"related":[],"kind":"vulnerability","state":"published","title":"LangChain vulnerable to arbitrary code execution","summary":"An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.","source":"cvelist"},{"lang":"en","text":"An issue in LangChain prior to v.0.0.247 allows a remote attacker to execute arbitrary code via the prompt parameter.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un problema en LangChain v.0.0.231 permite a un atacante remoto ejecutar código arbitrario a través del parámetro prompt.","source":"nvd"}],"published":"2023-08-15T00:00:00.000Z","modified":"2026-06-17T06:11:12.740Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.0.231"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:0.0.231:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"}],"references":[{"url":"https://github.com/hwchase17/langchain/issues/7641","tags":["exploit","issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38860","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/issues/7641","tags":["evidence","report","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/8092","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/pull/8425","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/hwchase17/langchain","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-145.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-fj32-q626-pjjc","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-10-09T13:16:43.332Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38860","url":"https://www.cve.org/CVERecord?id=CVE-2023-38860","licence":"CVE Terms of Use","modified":"2024-10-09T13:16:52.350Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fj32-q626-pjjc","url":"https://github.com/advisories/GHSA-fj32-q626-pjjc","licence":"CC-BY-4.0","modified":"2024-09-27T18:01:17.289Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38860","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38860","licence":"Public domain","modified":"2026-06-17T06:11:12.740Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-145","url":"https://osv.dev/vulnerability/PYSEC-2023-145","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:59.588Z"}],"updatedAt":"2026-11-25T22:58:27.138Z","epss":{"score":0.01405,"percentile":0.73365,"date":"2026-12-01T12:00:22.000Z"}}