CVE-2023-36095
LangChain vulnerability analysis and mitigation

Overview

An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include frommathprompt and fromcoloredobject_prompt (NVD, CVE).

Technical details

The vulnerability exists in the PALChain component of langchain v.0.0.194, specifically in the python exec method. The affected functions include frommathprompt and fromcoloredobject_prompt. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 CRITICAL with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating a critical severity level with network access vector, low attack complexity, and no privileges or user interaction required (NVD).

Impact

The vulnerability allows attackers to execute arbitrary code on the affected system. This could lead to complete system compromise, as the attacker can execute any Python commands through the PALChain component (NVD).

Mitigation and workarounds

Users should upgrade from the affected version (v.0.0.194) to a patched version of langchain. Additionally, it is recommended to implement input sanitization and validation to check for sensitive code before execution (GitHub Issue).

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