CVE-2023-34540
LangChain vulnerability analysis and mitigation

Overview

Langchain before version 0.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. The vulnerability was discovered in May 2023 and was patched in version 0.0.225 released in July 2023 (NVD, GitHub Release).

Technical details

The vulnerability exists in the 'other' mode of the JiraAPIWrapper component, which directly pipelined user input into an exec() function without proper validation. The intended use of the 'other' mode was to cover Atlassian's API functionality that didn't have an existing interface. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 CRITICAL with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD, GitHub Issue).

Impact

The vulnerability allows attackers to execute arbitrary system commands through the JiraAPIWrapper component. An attacker could exploit this to execute any command on the underlying system, potentially leading to full system compromise, unauthorized access, and data breaches (GitHub Issue).

Exploitability

The vulnerability is easily exploitable by sending crafted input to the JiraAPIWrapper's 'other' mode. A proof of concept exists demonstrating how arbitrary commands can be executed through the vulnerability. The exploit requires no special privileges or complex conditions to execute (GitHub Issue).

Mitigation and workarounds

The vulnerability has been fixed in Langchain version 0.0.225. The fix replaces the insecure exec() implementation with a getattr-based method for Jira functionality, which directly calls Atlassian's API subfunctions instead of executing arbitrary code. Users should upgrade to version 0.0.225 or later to address this vulnerability (GitHub PR, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related LangChain vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-8309CRITICAL9.8
  • Python logoPython
  • langchain-community
NoYesOct 29, 2024
CVE-2024-7774CRITICAL9.1
  • JavaScript logoJavaScript
  • langchain
NoYesOct 29, 2024
CVE-2026-45134HIGH7.1
  • Python logoPython
  • langchain-classic
NoYesMay 27, 2026
CVE-2026-55443MEDIUM5.5
  • Python logoPython
  • open-webui
NoYesJun 22, 2026
GHSA-gr75-jv2w-4656MEDIUM5.1
  • Python logoPython
  • langchain
NoYesJun 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management