# CVE-2023-34540: Langchain OS Command Injection vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.67%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-06-14T00:00:00.000Z
- Modified: 2026-06-17T06:03:45.043Z
- Also known as: GHSA-x32c-59v5-h7fg, PYSEC-2023-91
- Weaknesses: CWE-78
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- langchain (PyPI): before 0.0.225
- langchain langchain: 0.0.171

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/hwchase17/langchain/issues/4833> (exploit, issue-tracking, web)
- <https://github.com/langchain-ai/langchain/issues/4833> (exploit, evidence, report, web)
- <https://github.com/langchain-ai/langchain/pull/6992> (fix, web)
- <https://github.com/langchain-ai/langchain/releases/tag/v0.0.225> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-34540> (advisory)
- <https://github.com/langchain-ai/langchain/commit/a2f191a32229256dd41deadf97786fe41ce04cbb> (web)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-91.yaml> (web)
- <https://github.com/advisories/GHSA-x32c-59v5-h7fg> (advisory)

## Sources

- CVE List: [CVE-2023-34540](https://www.cve.org/CVERecord?id=CVE-2023-34540), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-x32c-59v5-h7fg](https://github.com/advisories/GHSA-x32c-59v5-h7fg), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2023-34540](https://nvd.nist.gov/vuln/detail/CVE-2023-34540), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-91](https://osv.dev/vulnerability/PYSEC-2023-91), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2023-34540 · Whole record: https://cve.day/CVE-2023-34540.json · Rebuilt by cve.day 2026-11-25T22:58:24.847Z
