CVE-2024-25178 json
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.
published 2025-07-07 16 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-22514
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- openresty luajit2 2.1-20240314
- luajit Debian 12 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1
- luajit Debian 14, Debian 13 2.1.0+openresty20240314-1
debian advisories DEBIAN-CVE-2024-25178
- luajit Ubuntu 22.04 LTS 2.1.0~beta3+dfsg-6ubuntu0.1
- luajit Ubuntu 24.04 LTS 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1
- luajit Ubuntu Pro 14.04 LTS 2.0.2+dfsg-1ubuntu0.1~esm1
- luajit Ubuntu Pro 16.04 LTS 2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1
- luajit Ubuntu Pro 18.04 LTS 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1
- luajit Ubuntu Pro 20.04 LTS 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1
ubuntu advisories UBUNTU-CVE-2024-25178
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- luajit SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, SLE Module for Basesystem 15 SP7 +2 more 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1
- lua51-luajit openSUSE Leap 15.6 2.1.0~beta2-150000.3.3.1
suse advisories SUSE-SU-2025:03378-1SUSE-SU-2025:02886-1
- luajit Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 2.1_p20240815-r1
alpine advisories ALPINE-CVE-2024-25178
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- luajit CBL-Mariner 2.0 2.1.0-27
- sysbench CBL-Mariner 2.0 1.0.20-3
- sysbench Azure Linux 3.0 1.0.20-6
azure linux advisories AZL-65373AZL-65391AZL-65424
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-25178 updated cvss 1.9
luajit: Out of bounds read in LuaJIT
-
Red Hat OpenStack Platform 17.1 luajit Red Hat OpenStack Platform 18.0 luajitaffected: workaround, no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 16 mo ago
Exploit prediction
0.66% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/LuaJIT/LuaJIT/issues/1152 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
patch
- github.com /openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
-
github.com
/LuaJIT/LuaJIT/issues/1152
exploit, issue-tracking
-
gist.github.com
/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8
third-party-advisory
- lists.debian.org /debian-lts-announce/2025/08/msg00022.html
Sources
- CVE List CVE-2024-25178
- NVD CVE-2024-25178
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Improve affected products and version ranges.