PyPi: Langchain

CVE-2023-39659

Safety vulnerability ID: 60433

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Aug 15, 2023 Updated at Jun 14, 2024
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of langchain allow a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.
#NOTE: The data we include in this advisory differs from the publicly available on nvd.nist.gov. The advisory posted by the NVD indicated that versions up to and including 0.0.232 were affected. However, research by Safety CLI Cybersecurity confirms that the vulnerability remains unaddressed in all versions up to 0.0.325.

Affected package

langchain

Latest version: 0.2.5

Building applications with LLMs through composability

Affected versions

Fixed versions

Vulnerability changelog

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component. See CVE-2023-39659.


MISC:https://github.com/langchain-ai/langchain/issues/7700: https://github.com/langchain-ai/langchain/issues/7700
MISC:https://github.com/langchain-ai/langchain/pull/5640: https://github.com/langchain-ai/langchain/pull/5640

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

CRITICAL 9.8

CVSS v3 Details

CRITICAL 9.8
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH