CVE-2023-34540 json
Langchain OS Command Injection vulnerability
published 2023-06-14 3 y ago modified 2026-06-17 4 mo ago also GHSA-x32c-59v5-h7fg , PYSEC-2023-91 , EUVD-2023-0120
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi langchain 0.0.225
Exploit prediction
1.67% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/4833 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.0.225 |
0.0.225 |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/langchain-ai/langchain/pull/6992
web, patch
-
github.com
/langchain-ai/langchain/commit/a2f191a32229256dd41deadf97786fe41ce04cbb
web
-
github.com
/hwchase17/langchain/issues/4833
web, exploit, issue-tracking
-
github.com
/langchain-ai/langchain/releases/tag/v0.0.225
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-34540
advisory
-
github.com
/langchain-ai/langchain/issues/4833
web, evidence, report
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-91.yaml
web
-
github.com
/advisories/GHSA-x32c-59v5-h7fg
advisory
Sources
- CVE List CVE-2023-34540
- GitHub Advisory GHSA-x32c-59v5-h7fg
- NVD CVE-2023-34540
- OSV PYSEC-2023-91
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.