PyPi: Langchain

CVE-2023-36258

Safety vulnerability ID: 59294

This vulnerability was reviewed by experts

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

Created at Jul 03, 2023 Updated at Jan 03, 2025
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of Langchain allow an attacker to execute arbitrary code via the PALChain in the python exec method. The PALChain class requires unique security considerations so it was moved langchain-experimental package and removed from langchain on version 0.0.247. The issue was attempted to be resolved several times in langchain-experimental but the fixes were found incomplete. See CVE-2023-44467, CVE-2024-27444, and CVE-2024-38459.

Affected package

langchain

Latest version: 0.3.14

Building applications with LLMs through composability

Affected versions

Fixed versions

Vulnerability changelog

An issue in langchain v.0.0.199 allows an attacker to execute arbitrary code via the PALChain in the python exec method. See CVE-2023-36258.


MISC:https://github.com/hwchase17/langchain/issues/5872: https://github.com/hwchase17/langchain/issues/5872

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