LangChainPublished 26 Feb 2024NVD status: Analyzed

CVE-2024-27444

langchain_experimental (aka LangChain Experimental) in 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__…

ComponentLangChain (langchain-experimental)
Severitycritical (CVSS 9.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2024-02-26
Last modified2026-06-17
Affected versions
< 0.0.52
from the GitHub-reviewed advisory GHSA-v8vj-cv27-hjv8
Fixed in0.0.52
WeaknessCWE-749
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads < 0.1.8. The ranges above come from the GitHub-reviewed advisory GHSA-v8vj-cv27-hjv8. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).

NVD description

langchain_experimental (aka LangChain Experimental) in 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.

What to do

  • Upgrade LangChain to 0.0.52 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources