Description
In LuaJIT through 2.0.5, as used in Moonjit before 2.1.2 and other products, debug.getinfo has a type confusion issue that leads to arbitrary memory write or read operations, because certain cases involving valid stack levels and > options are mishandled. NOTE: The LuaJIT project owner states that the debug libary is unsafe by definition and that this is not a vulnerability. When LuaJIT was originally developed, the expectation was that the entire debug library had no security guarantees and thus it made no sense to assign CVEs. However, not all users of later LuaJIT derivatives share this perspective
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | luajit | 2.1.0~beta3+git20210112+dfsg-2 | — |
| Debian 13 | luajit | 2.1.0~beta3+git20210112+dfsg-2 | — |
| Debian 12 | luajit | 2.1.0~beta3+git20210112+dfsg-2 | — |
| Debian 11 | luajit | 2.1.0~beta3+dfsg-5.3+deb11u1 | DLA-4283-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | luajit | 2.1.20250826-1.1 | openSUSE-SU-2025:15672-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | sysbench | 1.0.20-3 | — |
Advisories 2
- openSUSE-SU-2025:15672-1 libluajit-5_1-2-2.1.20250826-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-4283-1 luajit - security update Debian Security (DSA / DLA) · Mar 9, 2026