CVE-2024-25178

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 is fixed in 5 products on 1 platform, first by libluajit-5.1-2 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1, released July 7, 2025. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.1
Important
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0067
52nd percentile

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)

Where it's fixed

ProductFixed inFixReleased
Linux
ecs-service-connect-agent · amzn 2023 v1.34.4.2-1.amzn2023 ALAS2023-2025-1357 Jan 7, 2026
libluajit-5.1-2 · Ubuntu 18.04.6 LTS (bionic) 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 libluajit-5.1-2 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 Jul 7, 2025
libluajit-5.1-2 · Ubuntu 20.04 LTS (focal) 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 libluajit-5.1-2 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 Jul 7, 2025
libluajit-5.1-2 · Ubuntu 22.04.1 LTS (jammy) 2.1.0~beta3+dfsg-6ubuntu0.1 libluajit-5.1-2 2.1.0~beta3+dfsg-6ubuntu0.1 Jul 7, 2025
libluajit-5.1-2 · Ubuntu 24.04.5 LTS (noble) 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 libluajit-5.1-2 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 Jul 7, 2025
libluajit-5.1-common · Ubuntu 18.04.6 LTS (bionic) 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 libluajit-5.1-common 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 Jul 7, 2025
libluajit-5.1-common · Ubuntu 20.04 LTS (focal) 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 libluajit-5.1-common 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 Jul 7, 2025
libluajit-5.1-common · Ubuntu 22.04.1 LTS (jammy) 2.1.0~beta3+dfsg-6ubuntu0.1 libluajit-5.1-common 2.1.0~beta3+dfsg-6ubuntu0.1 Jul 7, 2025
libluajit-5.1-common · Ubuntu 24.04.5 LTS (noble) 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 libluajit-5.1-common 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 Jul 7, 2025
lua51-luajit · opensuse-leap 15.6 2.1.0~beta2-150000.3.3.1 SUSE-SU-2025:02886-1 Aug 19, 2025
luajit · Debian 12.15 (bookworm) 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1 DEBIAN-CVE-2024-25178 Jul 7, 2025
luajit · Debian 13.5 (trixie) 2.1.0+openresty20240314-1 DEBIAN-CVE-2024-25178 Jul 7, 2025
luajit · Debian 14 2.1.0+openresty20240314-1 DEBIAN-CVE-2024-25178 Jul 7, 2025
luajit · Ubuntu 18.04.6 LTS (bionic) 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 luajit 2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 Jul 7, 2025
luajit · Ubuntu 20.04 LTS (focal) 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 luajit 2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 Jul 7, 2025
luajit · Ubuntu 22.04.1 LTS (jammy) 2.1.0~beta3+dfsg-6ubuntu0.1 luajit 2.1.0~beta3+dfsg-6ubuntu0.1 Jul 7, 2025
luajit · Ubuntu 24.04.5 LTS (noble) 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 luajit 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 Jul 7, 2025
luajit · opensuse-leap 15.6 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 SUSE-SU-2025:03378-1 Sep 26, 2025
luajit · sles 15.6 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 SUSE-SU-2025:03378-1 Sep 26, 2025
luajit · sles 15.7 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 SUSE-SU-2025:03378-1 Sep 26, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.