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