Browse / Tool and Agent Misuse / CVE-2023-34540
Langchain OS Command Injection vulnerability
- Class
- Tool and Agent Misuse (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- langchain (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 1.7% chance of exploitation in 30 days
How it works, in short
Crafted input to the Jira API wrapper in older LangChain versions leads to arbitrary code execution. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-34540
- https://github.com/hwchase17/langchain/issues/4833
- https://github.com/langchain-ai/langchain/issues/4833
- https://github.com/langchain-ai/langchain/pull/6992
- https://github.com/langchain-ai/langchain/commit/a2f191a32229256dd41deadf97786fe41ce04cbb
- https://github.com/langchain-ai/langchain
- https://github.com/langchain-ai/langchain/releases/tag/v0.0.225
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-91.yaml
Source: GitHub Advisory Database, used under CC BY 4.0.