Vulnerability · Published Jul 7, 2025 · Assigned by mitre
CVE-2024-25177
High 7.5
In plain English
A high-severity null pointer dereference in the luajit package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 52.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240314 have an unsinking of IR_FSTORE for NULL metatable, which leads to Denial of Service (DoS).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25177 |
| Alpine:v3.21 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25177 |
| Alpine:v3.22 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25177 |
| Alpine:v3.23 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25177 |
| Alpine:v3.24 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25177 |
| Debian:12 | luajit | 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1 | DEBIAN-CVE-2024-25177 |
| Debian:13 | luajit | 2.1.0+openresty20240314-1 | DEBIAN-CVE-2024-25177 |
| Debian:14 | luajit | 2.1.0+openresty20240314-1 | DEBIAN-CVE-2024-25177 |
| Ubuntu:22.04:LTS | luajit | 2.1.0~beta3+dfsg-6ubuntu0.1 | USN-8544-1 |
| Ubuntu:22.04:LTS | luajit | 2.1.0~beta3+dfsg-6ubuntu0.1 | UBUNTU-CVE-2024-25177 |
| Ubuntu:24.04:LTS | luajit | 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 | UBUNTU-CVE-2024-25177 |
| Ubuntu:24.04:LTS | luajit | 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 | USN-8544-1 |
| Ubuntu:25.10 | luajit | no fix listed | UBUNTU-CVE-2024-25177 |
| Ubuntu:26.04:LTS | luajit | no fix listed | UBUNTU-CVE-2024-25177 |
| Ubuntu:26.10 | luajit | no fix listed | UBUNTU-CVE-2024-25177 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/LuaJIT/LuaJIT/commit/85b4fed0b0353dd78c8c875c2f562d522a2b310f
- https://github.com/LuaJIT/LuaJIT/issues/1147
- https://gist.github.com/pwnhacker0x18/a73f560d79f2c3d4011d6c5a2676f04a
- https://github.com/openresty/luajit2/commit/85b4fed0b0353dd78c8c875c2f562d522a2b310f
- https://lists.debian.org/debian-lts-announce/2025/08/msg00022.html