Arbitrary Code Injection Affecting lupa package, versions [,2.7)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
Exploit Maturity
Proof of Concept
EPSS
0.61% (45th 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 Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LUPA-15954200
  • published10 Apr 2026
  • disclosed7 Apr 2026
  • creditredyank

Introduced: 7 Apr 2026

CVE-2026-34444  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade lupa to version 2.7 or higher.

Overview

lupa is a Python wrapper around Lua and LuaJIT

Affected versions of this package are vulnerable to Arbitrary Code Injection incomplete enforcement of the attribute_filter in the getattr and setattr built-in functions. An attacker can execute arbitrary commands in the host environment by bypassing attribute access restrictions through built-in functions when untrusted Lua code is allowed to access Python builtins.

CVSS Base Scores

version 4.0
version 3.1