# 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.

- Web page: https://patchblox.com/security/cve/CVE-2024-25178
- Priority: High
- CVSS: 9.1 (Important)
- EPSS: 0.0067
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 7, 2025
- Weakness: Out-of-bounds Read
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-25178

## Description

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

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | ecs-service-connect-agent amzn 2023 | v1.34.4.2-1.amzn2023 | [ALAS2023-2025-1357](https://patchblox.com/security/data/fix/linux/alas2023-2025-1357.md) | Jan 7, 2026 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libluajit-5.1-2-2.1.0-beta3-dfsg-5.1ubuntu0.18.04.1-esm1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libluajit-5.1-2-2.1.0-beta3-dfsg-5.1ubuntu0.20.04.1-esm1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libluajit-5.1-2-2.1.0-beta3-dfsg-6ubuntu0.1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libluajit-5.1-2-2.1.0-git20231223.c525bcb-dfsg-1ubuntu0.1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libluajit-5.1-common-2.1.0-beta3-dfsg-5.1ubuntu0.18.04.1-esm1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libluajit-5.1-common-2.1.0-beta3-dfsg-5.1ubuntu0.20.04.1-esm1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libluajit-5.1-common-2.1.0-beta3-dfsg-6ubuntu0.1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libluajit-5.1-common-2.1.0-git20231223.c525bcb-dfsg-1ubuntu0.1.md) | Jul 7, 2025 |
| Linux | lua51-luajit opensuse-leap 15.6 | 2.1.0~beta2-150000.3.3.1 | [SUSE-SU-2025:02886-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02886-1.md) | Aug 19, 2025 |
| Linux | luajit Debian 12.15 (bookworm) | 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1 | [DEBIAN-CVE-2024-25178](https://patchblox.com/security/data/fix/linux/debian-cve-2024-25178.md) | Jul 7, 2025 |
| Linux | luajit Debian 13.5 (trixie) | 2.1.0+openresty20240314-1 | [DEBIAN-CVE-2024-25178](https://patchblox.com/security/data/fix/linux/debian-cve-2024-25178.md) | Jul 7, 2025 |
| Linux | luajit Debian 14 | 2.1.0+openresty20240314-1 | [DEBIAN-CVE-2024-25178](https://patchblox.com/security/data/fix/linux/debian-cve-2024-25178.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-luajit-2.1.0-beta3-dfsg-5.1ubuntu0.18.04.1-esm1.md) | Jul 7, 2025 |
| Linux | 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](https://patchblox.com/security/data/fix/linux/ubuntu-focal-luajit-2.1.0-beta3-dfsg-5.1ubuntu0.20.04.1-esm1.md) | Jul 7, 2025 |
| Linux | luajit Ubuntu 22.04.1 LTS (jammy) | 2.1.0~beta3+dfsg-6ubuntu0.1 | [luajit 2.1.0~beta3+dfsg-6ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-luajit-2.1.0-beta3-dfsg-6ubuntu0.1.md) | Jul 7, 2025 |
| Linux | luajit Ubuntu 24.04.5 LTS (noble) | 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 | [luajit 2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-luajit-2.1.0-git20231223.c525bcb-dfsg-1ubuntu0.1.md) | Jul 7, 2025 |
| Linux | luajit opensuse-leap 15.6 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | [SUSE-SU-2025:03378-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03378-1.md) | Sep 26, 2025 |
| Linux | luajit sles 15.6 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | [SUSE-SU-2025:03378-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03378-1.md) | Sep 26, 2025 |
| Linux | luajit sles 15.7 | 2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1 | [SUSE-SU-2025:03378-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-03378-1.md) | Sep 26, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
