CVE-2024-25176: LuaJIT · Stack-based Buffer Overflow
Affects LuaJITSource CVE Database V5
Not known to be exploited · CVSS 9.8 Critical : upgrade to 2.1-20240626 as a priority.
Data as of 26 Oct 2026, 11:07 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.1-20240626
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade openresty/luajit2 to 2.1-20240626.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubluajit/LuaJITpkg:github/luajit/LuaJITOther threats | Affected
| Fixed in– |
GitHubopenresty/luajit2pkg:github/openresty/luajit2Other threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately inventory all software and systems using LuaJIT or OpenRusty luajit2 to identify vulnerable versions. In the absence of official patches, organizations should consider applying temporary mitigations such as disabling or restricting LuaJIT usage in exposed network-facing applications. Implementing strict network segmentation and firewall rules to limit access to systems running LuaJIT can reduce exposure. Employ runtime application self-protection (RASP) or exploit mitigation technologies like stack canaries, ASLR, and DEP to hinder exploitation attempts. Continuous monitoring for anomalous behavior or crashes related to LuaJIT processes is critical for early detection. Security teams should update intrusion detection and prevention systems with signatures targeting this vulnerability once available. Additionally, organizations should engage with software vendors and developers to ensure timely updates and communicate the urgency of patching. Conducting penetration testing focused on LuaJIT components can help validate the effectiveness of mitigations.
Description
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.
References
- github.com/LuaJIT/LuaJIT/commit/343ce0edaf3906a62022936175b2f5410024cbfc (opens in a new tab)
- github.com/LuaJIT/LuaJIT/issues/1149 (opens in a new tab)
- gist.github.com/pwnhacker0x18/cd75d01fc7c9b6c85c183fbe5353d276 (opens in a new tab)
- github.com/openresty/luajit2/commit/343ce0edaf3906a62022936175b2f5410024cbfc (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/08/msg00022.html (opens in a new tab)