cve.bz

CVE-2024-25176 luajit luajit: Stack-based Buffer Overflow

9.8 criticalExploit referenceEPSS 0.6%Fix available

Critical (9.8) in luajit luajit. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2025-07-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-25176 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-25176?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-25176?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-25176 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
luajit:luajitthrough 2.1.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11luajit2.1.0~beta3+dfsg-5.3+deb11u1DLA-4283-1
Debian12luajit2.1.0~beta3+git20220320+dfsg-4.1+deb12u1DEBIAN-CVE-2024-25176
Debian13, 14luajit2.1.0+openresty20240314-1DEBIAN-CVE-2024-25176
Ubuntu22.04:LTSluajit2.1.0~beta3+dfsg-6ubuntu0.1UBUNTU-CVE-2024-25176 USN-8544-1
Ubuntu24.04:LTSluajit2.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1UBUNTU-CVE-2024-25176 USN-8544-1
Ubuntu25.10, 26.04:LTS, 26.10luajitno fix listedUBUNTU-CVE-2024-25176
UbuntuPro:14.04:LTSluajit2.0.2+dfsg-1ubuntu0.1~esm1USN-8544-1
UbuntuPro:16.04:LTSluajit2.0.4+dfsg-1+deb9u1ubuntu0.1~esm1USN-8544-1
UbuntuPro:18.04:LTSluajit2.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1UBUNTU-CVE-2024-25176 USN-8544-1
UbuntuPro:20.04:LTSluajit2.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1UBUNTU-CVE-2024-25176 USN-8544-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Package Hub 15 SP6 and 1 moreluajit2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1SUSE-SU-2025:03378-1
openSUSELeap 15.6lua51-luajit2.1.0~beta2-150000.3.3.1SUSE-SU-2025:02886-1
openSUSELeap 15.6luajit2.1.0~beta3+git.1624618403.e9577376-150400.4.5.1SUSE-SU-2025:03378-1
Alpinev3.19, v3.20, v3.21 and 3 moreluajit2.1_p20240815-r1ALPINE-CVE-2024-25176
Azure Linux2luajit2.1.0-27AZL-65370
Azure Linux2sysbench1.0.20-3AZL-65394
Azure Linux3sysbench1.0.20-6AZL-65427
Alpaquita23luajit2.1_p20210510-r4BELL-CVE-2024-25176
Alpaquitastreamluajit2.1_p20240314-r0BELL-CVE-2024-25176

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 17.1luajitFix deferred
Red Hat OpenStack Platform 18.0luajitFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-25176.

References

Check your stackJSON