Lupa has a Sandbox escape and RCE due to incomplete attribute_filter enforcement in getattr / setattr
scoder lupa
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| lupa PyPI |
| No fix yet |
Original description
Lupa integrates the runtimes of Lua or LuaJIT2 into CPython. In 2.6 and earlier, attribute_filter is not consistently applied when attributes are accessed through built-in functions like getattr and setattr. This allows an attacker to bypass the intended restrictions and eventually achieve arbitrary code execution.
From the CVE record · GitHub_M