PT-2024-21902 · Langchain+1 · Langchain+1

Published

2024-02-25

·

Updated

2025-07-14

·

CVE-2024-27444

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions LangChain versions prior to 0.1.8 langchain experimental versions prior to 0.0.52
Description The issue allows an attacker to bypass a previous fix and execute arbitrary code via certain attributes in Python code, including import, subclasses, builtins, globals, getattribute, bases, mro, or base. These attributes are not prohibited by pal chain/base.py.
Recommendations For LangChain versions prior to 0.1.8, update to version 0.1.8 or later. For langchain experimental versions prior to 0.0.52, update to version 0.0.52 or later. As a temporary workaround, consider restricting the use of the import, subclasses, builtins, globals, getattribute, bases, mro, or base attributes in Python code until a patch is applied.

Fix

Weakness Enumeration

Related Identifiers

CVE-2024-27444
GHSA-V8VJ-CV27-HJV8

Affected Products

Langchain
Langchain Experimental