CVE-2024-25176 json
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.
published 2025-07-07 16 mo ago modified 2026-06-17 4 mo ago also EUVD-2024-22512
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- openresty luajit2 2.1-20240626
- 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-25176
- 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 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-25176
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-25176
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-65370AZL-65394AZL-65427
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-25176 updated cvss 1.9
luajit: From CVEorg collector
-
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
- total
- Assessed
- 16 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/LuaJIT/LuaJIT/issues/1149 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
- Weakness
-
- CWE-121 Stack-based Buffer Overflow
References
-
github.com
/LuaJIT/LuaJIT/commit/343ce0edaf3906a62022936175b2f5410024cbfc
patch
- github.com /openresty/luajit2/commit/343ce0edaf3906a62022936175b2f5410024cbfc
-
github.com
/LuaJIT/LuaJIT/issues/1149
exploit, issue-tracking
-
gist.github.com
/pwnhacker0x18/cd75d01fc7c9b6c85c183fbe5353d276
third-party-advisory
- lists.debian.org /debian-lts-announce/2025/08/msg00022.html
Sources
- CVE List CVE-2024-25176
- NVD CVE-2024-25176
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.