PyPI: langchain-experimental

CVE-2024-27444

Safety vulnerability ID: SFTY-20240226-19020

Safety legacy ID: pyup.io-68479

Langchain-experimental (aka LangChain Experimental) allows attackers to bypass the CVE-2023-44467 fix and execute arbitrary code via the __import__, __subclasses__, __builtins__, __globals__, __getattribute__, __bases__, __mro__, or __base__ attribute in Python code. These are not prohibited by pal_chain/base.py.

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

LangChain Experimental vulnerable to arbitrary code execution

Advisory

Langchain-experimental (aka LangChain Experimental) allows attackers to bypass the CVE-2023-44467 fix and execute arbitrary code via the __import__, __subclasses__, __builtins__, __globals__, __getattribute__, __bases__, __mro__, or __base__ attribute in Python code. These are not prohibited by pal_chain/base.py.

Affected Package

Affecting langchain-experimental package, versions
<0.0.52

Also affects

---

How to Fix

Upgrade
langchain-experimental
to
0.0.52
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more