Arbitrary Code Execution Affecting langchain-experimental package, versions [,0.0.52)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LANGCHAINEXPERIMENTAL-6347242
  • published1 Mar 2024
  • disclosed1 Mar 2024
  • creditUnknown

Introduced: 1 Mar 2024

CVE-2024-27444  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade langchain-experimental to version 0.0.52 or higher.

Overview

langchain-experimental is a package that holds experimental LangChain code, intended for research and experimental uses.

Affected versions of this package are vulnerable to Arbitrary Code Execution. via the __import__, __subclasses__, __builtins__, __globals__, __getattribute__, __bases__, __mro__ or __base__ attributes in Python code.

Note: Code is clearly documented as being risky and the correct mitigation strategy is by executing the code in a sandboxed environment.

References

CVSS Scores

version 3.1