Vulnerability · Published Jul 7, 2025 · Assigned by mitre
CVE-2024-25178
Critical 9.1
In plain English
A critical-severity out-of-bounds read 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.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)0.7%top 48.0% 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 out-of-bounds read in the stack-overflow handler in lj_state.c.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25178 |
| Alpine:v3.21 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25178 |
| Alpine:v3.22 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25178 |
| Alpine:v3.23 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25178 |
| Alpine:v3.24 | luajit | 2.1_p20240815-r1 | ALPINE-CVE-2024-25178 |
| Debian:12 | luajit | 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1 | DEBIAN-CVE-2024-25178 |
| Debian:13 | luajit | 2.1.0+openresty20240314-1 | DEBIAN-CVE-2024-25178 |
| Debian:14 | luajit | 2.1.0+openresty20240314-1 | DEBIAN-CVE-2024-25178 |
| 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-25178 |
| Ubuntu:24.04:LTS | luajit | 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 | UBUNTU-CVE-2024-25178 |
| 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-25178 |
| Ubuntu:26.04:LTS | luajit | no fix listed | UBUNTU-CVE-2024-25178 |
| Ubuntu:26.10 | luajit | no fix listed | UBUNTU-CVE-2024-25178 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- https://github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
- https://github.com/LuaJIT/LuaJIT/issues/1152
- https://gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8
- https://github.com/openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
- https://lists.debian.org/debian-lts-announce/2025/08/msg00022.html