Advisory

PYSEC-2026-375

Also known as: CVE-2024-27444, GHSA-v8vj-cv27-hjv8

Summary

LangChain Experimental vulnerable to arbitrary code execution

Details

langchain_experimental (aka LangChain Experimental) before 0.0.52, part of LangChain before 0.1.8, allows an attacker 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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-06-29 11:50 UTC
Modified
2026-07-01 20:22 UTC

Affected packages and fixes

langchain-experimental

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.52 (ecosystem)

Fixed versions

0.0.52

Fix

  • Fixed version 0.0.52
    pip install --upgrade langchain-experimental==0.0.52

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences