Skip to main content
VulnerabilityPublished Updated

CVE-2024-27444: langchain-experimental · Exposed Dangerous Method or Function

Affects langchain-experimentalSource CVE Database V5

0

Mentioned vulnerabilities

Not known to be exploited · CVSS 9.8 Critical : upgrade to 0.1.8 as a priority.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.1.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade langchain-experimental to 0.1.8.

Affected software

ProductAffectedFixed in
PyPIlangchain-experimentalpkg:pypi/langchain-experimentalOther threatsAffected
  • <0.1.8
Fixed in
  • 0.1.8

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-27444, organizations should immediately upgrade LangChain Experimental to version 0.1.8 or later, where this vulnerability is addressed. If upgrading is not immediately feasible, restrict or disable the use of dynamic Python code execution features that rely on the vulnerable pal_chain/base.py module. Implement strict input validation and sanitization to prevent malicious payloads from reaching vulnerable code paths. Employ runtime application self-protection (RASP) or sandboxing techniques to limit the impact of arbitrary code execution. Monitor logs and network traffic for suspicious activity indicative of exploitation attempts. Conduct code reviews focusing on the use of Python special attributes and dynamic imports. Additionally, enforce the principle of least privilege on systems running LangChain to minimize damage from potential exploitation. Stay informed on vendor advisories and threat intelligence for any emerging exploits.

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.

References

Community reviews

Loading reviews…