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).

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
  • PythonPython
  • langchain
NoYesOct 29, 2024
CVE-2024-7042CRITICAL9.8
  • JavaScriptJavaScript
  • langchain
NoYesOct 29, 2024
CVE-2024-7774CRITICAL9.1
  • JavaScriptJavaScript
  • langchain
NoYesOct 29, 2024
CVE-2024-5998HIGH7.8
  • PythonPython
  • langchain
NoYesSep 17, 2024
CVE-2024-3095HIGH7.7
  • PythonPython
  • langchain-community
NoYesJun 06, 2024

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