CVE-2024-25178
LuaJIT through 2.1 has an out-of-bounds read in the stack-overflow handler in lj_state.c
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.1
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.
- Record
CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2024-22514
9.1
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.
- Record
EUVD-2024-22514- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vw7w-mrf6-7vrv
9.1
LuaJIT through 2.1 has an out-of-bounds read in the stack-overflow handler in lj_state.c
LuaJIT through 2.1 has an out-of-bounds read in the stack-overflow handler in lj_state.c
- Record
GHSA-vw7w-mrf6-7vrv- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
9.1
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.
- Record
CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-25178
9.1
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.
- Record
ALPINE-CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2024-25178
9.1
- Record
BELL-CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSV
9.1
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.
- Record
CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-04
OSVDEBIAN-CVE-2024-25178
9.1
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.
- Record
DEBIAN-CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-25178
9.1
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.
- Record
UBUNTU-CVE-2024-25178- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSVAZL-65373 No score
CVE-2024-25178 affecting package luajit for versions less than 2.1.0-27
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.
- Record
AZL-65373- Updated
- 2026-11-02
OSVAZL-65391 No score
CVE-2024-25178 affecting package sysbench for versions less than 1.0.20-3
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.
- Record
AZL-65391- Updated
- 2026-11-02
OSVAZL-65424 No score
CVE-2024-25178 affecting package sysbench for versions less than 1.0.20-6
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.
- Record
AZL-65424- Updated
- 2026-11-05
OSVMGASA-2026-0225 No score
Updated luajit packages fix security vulnerabilities
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. (CVE-2019-19391) LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c. (CVE-2020-24372) 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. (CVE-2024-25176) 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). (CVE-2024-25177) 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. (CVE-2024-25178)
- Record
MGASA-2026-0225- Updated
- 2026-11-02
OSVSUSE-SU-2025:02886-1 No score
Security update for lua51-luajit
This update for lua51-luajit fixes the following issues:
- CVE-2024-25176: Fixed stack-buffer-overflow in lj_strfmt_wfnum in lj_strfmt_num.c (bsc#1246077)
- CVE-2024-25177: Fixed unsinking of IR_FSTORE for NULL metatable (bsc#1246078)
- CVE-2024-25178: Fixed ut-of-bounds read in the stack-overflow handler in lj_state.c (bsc#1246079)
- Record
SUSE-SU-2025:02886-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:03378-1 No score
Security update for luajit
This update for luajit fixes the following issues:
- CVE-2024-25176: Fixed stack-buffer-overflow in lj_strfmt_wfnum in lj_strfmt_num.c (bsc#1246077)
- CVE-2024-25177: Fixed unsinking of IR_FSTORE for NULL metatable (bsc#1246078)
- CVE-2024-25178: Fixed out-of-bounds read in the stack-overflow handler in lj_state.c (bsc#1246079)
- Record
SUSE-SU-2025:03378-1- Updated
- 2026-11-02
OSVUSN-8544-1 No score
luajit vulnerabilities
It was discovered that LuaJIT incorrectly handled certain inputs. An attacker could possibly use these issues to cause a crash, resulting in a denial of service, or execute arbitrary code.
- Record
USN-8544-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
luajitAlpine:v3.19 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAlpine:v3.20 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAlpine:v3.21 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAlpine:v3.22 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAlpine:v3.23 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAlpine:v3.24 |
before 2.1_p20240815-r1 | 2.1_p20240815-r1 |
luajitAzure Linux:2 |
before 2.1.0-27 | 2.1.0-27 |
sysbenchAzure Linux:2 |
before 1.0.20-3 | 1.0.20-3 |
sysbenchAzure Linux:3 |
before 1.0.20-6 | 1.0.20-6 |
luajitAlpaquita:stream |
2.1_p20210510-r3 up to 2.1_p20240314-r0 | 2.1_p20240314-r0 |
Show 26 moreShow less
| Package | Affected | Fixed |
|---|---|---|
luajitDebian:12 |
before 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1, plus listed versions 2.1.0~beta3+git20220320+dfsg-4.1 |
2.1.0~beta3+git20220320+dfsg-4.1+deb12u1 |
luajitDebian:13 |
before 2.1.0+openresty20240314-1 | 2.1.0+openresty20240314-1 |
luajitDebian:14 |
before 2.1.0+openresty20240314-1 | 2.1.0+openresty20240314-1 |
luajitDebian:11 From an advisory covering 6 CVEs |
before 2.1.0~beta3+dfsg-5.3+deb11u1, plus listed versions 2.1.0~beta3+dfsg-5.3 |
2.1.0~beta3+dfsg-5.3+deb11u1 |
luajitMageia:9 From an advisory covering 5 CVEs |
before 2.1.0-0.beta3.10.1.mga9 | 2.1.0-0.beta3.10.1.mga9 |
lua51-luajitopenSUSE:Leap 15.6 From an advisory covering 3 CVEs |
before 2.1.0~beta2-150000.3.3.1 | 2.1.0~beta2-150000.3.3.1 |
luajitSUSE:Linux Enterprise Module for Basesystem 15 SP6 From an advisory covering 3 CVEs |
before 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 |
luajitSUSE:Linux Enterprise Module for Basesystem 15 SP7 From an advisory covering 3 CVEs |
before 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 |
luajitSUSE:Linux Enterprise Module for Package Hub 15 SP6 From an advisory covering 3 CVEs |
before 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 |
luajitSUSE:Linux Enterprise Module for Package Hub 15 SP7 From an advisory covering 3 CVEs |
before 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 |
luajitopenSUSE:Leap 15.6 From an advisory covering 3 CVEs |
before 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 |
luajitUbuntu:Pro:14.04:LTS |
before 2.0.2+dfsg-1ubuntu0.1~esm1, plus listed versions 2.0.2+dfsg-1 |
2.0.2+dfsg-1ubuntu0.1~esm1 |
luajitUbuntu:Pro:16.04:LTS |
before 2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1, plus listed versions 2.0.4+dfsg-12.0.4+dfsg-1+deb9u1build0.16.04.1 |
2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1 |
luajitUbuntu:Pro:18.04:LTS |
before 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1, plus listed versions 2.0.4+dfsg-12.1.0~beta3+dfsg-52.1.0~beta3+dfsg-5.1 |
2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 |
luajitUbuntu:Pro:20.04:LTS |
before 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1, plus listed versions 2.1.0~beta3+dfsg-5.12.1.0~beta3+dfsg-5.1build1 |
2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 |
luajitUbuntu:22.04:LTS |
before 2.1.0~beta3+dfsg-6ubuntu0.1, plus listed versions 2.1.0~beta3+dfsg-6 |
2.1.0~beta3+dfsg-6ubuntu0.1 |
luajitUbuntu:24.04:LTS |
before 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1, plus listed versions 2.1.0~beta3+git20220320+dfsg-4.12.1.0+git20231223.c525bcb+dfsg-1~build12.1.0+git20231223.c525bcb+dfsg-1 |
2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 |
luajitUbuntu:25.10 |
All versions, plus listed versions 2.1.0+openresty20250117-22.1.0+openresty20250117-2ubuntu1 |
None known |
luajitUbuntu:26.10 |
All versions, plus listed versions 2.1.0+openresty20251030-1 |
None known |
luajitUbuntu:26.04:LTS |
All versions, plus listed versions 2.1.0+openresty20250117-2ubuntu12.1.0+openresty20251030-1 |
None known |
luajitUbuntu:Pro:14.04:LTS From an advisory covering 3 CVEs |
before 2.0.2+dfsg-1ubuntu0.1~esm1, plus listed versions 2.0.2+dfsg-1 |
2.0.2+dfsg-1ubuntu0.1~esm1 |
luajitUbuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1, plus listed versions 2.0.4+dfsg-12.0.4+dfsg-1+deb9u1build0.16.04.1 |
2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1 |
luajitUbuntu:Pro:18.04:LTS From an advisory covering 3 CVEs |
before 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1, plus listed versions 2.0.4+dfsg-12.1.0~beta3+dfsg-52.1.0~beta3+dfsg-5.1 |
2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 |
luajitUbuntu:Pro:20.04:LTS From an advisory covering 3 CVEs |
before 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1, plus listed versions 2.1.0~beta3+dfsg-5.12.1.0~beta3+dfsg-5.1build1 |
2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 |
luajitUbuntu:22.04:LTS From an advisory covering 3 CVEs |
before 2.1.0~beta3+dfsg-6ubuntu0.1, plus listed versions 2.1.0~beta3+dfsg-6 |
2.1.0~beta3+dfsg-6ubuntu0.1 |
luajitUbuntu:24.04:LTS From an advisory covering 3 CVEs |
before 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1, plus listed versions 2.1.0~beta3+git20220320+dfsg-4.12.1.0+git20231223.c525bcb+dfsg-1~build12.1.0+git20231223.c525bcb+dfsg-1 |
2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-25178 is a critical vulnerability (CVSS 9.1) in Luajit, published July 7, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.66%, the 52nd percentile. Fixed in luajit 2.1_p20240815-r1.
References
github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
github.com/LuaJIT/LuaJIT/issues/1152
gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8
github.com/openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
lists.debian.org/debian-lts-announce/2025/08/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2024-25178
Show 21 moreShow less
github.com/advisories/GHSA-vw7w-mrf6-7vrv
security.alpinelinux.org/vuln/CVE-2024-25178
docs.bell-sw.com/security/cves/CVE-2024-25178
github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25178.json
security-tracker.debian.org/tracker/CVE-2024-25178
advisories.mageia.org/MGASA-2026-0225.html
bugs.mageia.org/show_bug.cgi?id=34491
lists.fedoraproject.org/archives/list/[email protected]/message/XU3NWLH45W4F7OBKEB4XEOJQI4S36PU5
suse.com/support/update/announcement/2025/suse-su-202502886-1
bugzilla.suse.com/1246077
bugzilla.suse.com/1246078
bugzilla.suse.com/1246079
suse.com/security/cve/CVE-2024-25176
suse.com/security/cve/CVE-2024-25177
suse.com/security/cve/CVE-2024-25178
suse.com/support/update/announcement/2025/suse-su-202503378-1
ubuntu.com/security/CVE-2024-25178
cve.org/CVERecord?id=CVE-2024-25178
ubuntu.com/security/notices/USN-8544-1
ubuntu.com/security/CVE-2024-25176
ubuntu.com/security/CVE-2024-25177