{"id":"CVE-2023-34540","aliases":["CVE-2023-34540","GHSA-x32c-59v5-h7fg","PYSEC-2023-91"],"related":[],"kind":"vulnerability","state":"published","title":"Langchain OS Command Injection vulnerability","summary":"Langchain before v0.0.225 was discovered to contain a remote code execution (RCE) vulnerability in the component JiraAPIWrapper (aka the JIRA API wrapper). This vulnerability allows attackers to execute arbitrary code via crafted input. As noted in the \"releases/tag\" reference, a fix is available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Langchain before v0.0.225 was discovered to contain a remote code execution (RCE) vulnerability in the component JiraAPIWrapper (aka the JIRA API wrapper). This vulnerability allows attackers to execute arbitrary code via crafted input. As noted in the \"releases/tag\" reference, a fix is available.","source":"cvelist"},{"lang":"en","text":"Langchain 0.0.171 is vulnerable to Arbitrary Code Execution.","format":"markdown","source":"pysec"}],"published":"2023-06-14T00:00:00.000Z","modified":"2026-06-17T06:03:45.043Z","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"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.225"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.0.171"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:0.0.171:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.225"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"}],"references":[{"url":"https://github.com/hwchase17/langchain/issues/4833","tags":["exploit","issue-tracking","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/langchain-ai/langchain/pull/6992","tags":["fix","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/v0.0.225","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34540","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/issues/4833","tags":["evidence","report","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/a2f191a32229256dd41deadf97786fe41ce04cbb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-91.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-x32c-59v5-h7fg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-34540","url":"https://www.cve.org/CVERecord?id=CVE-2023-34540","licence":"CVE Terms of Use","modified":"2024-08-02T16:10:07.011Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x32c-59v5-h7fg","url":"https://github.com/advisories/GHSA-x32c-59v5-h7fg","licence":"CC-BY-4.0","modified":"2025-02-21T05:28:32.059Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-34540","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34540","licence":"Public domain","modified":"2026-06-17T06:03:45.043Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-91","url":"https://osv.dev/vulnerability/PYSEC-2023-91","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:57.225Z"}],"updatedAt":"2026-11-25T22:58:24.847Z","epss":{"score":0.01667,"percentile":0.77452,"date":"2026-12-01T12:00:22.000Z"}}