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

CVE-2024-27444

·

Published

2024-02-25

·

Updated

2026-06-29

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.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-27444
GHSA-V8VJ-CV27-HJV8
PYSEC-2026-375

Affected Products

Langchain
Langchain Experimental