CVE-2024-25178: LuaJIT · Out-of-bounds Read
Affects LuaJITSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical : upgrade to 2.1-20240314 as a priority.
Data as of 26 Oct 2026, 11:42 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2.1-20240314
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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-20240314.
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
- Immediately inventory all systems and applications using LuaJIT or OpenRusty luajit2 to identify vulnerable versions.
- Restrict network access to services and applications embedding LuaJIT, especially those exposed to untrusted networks, using firewalls and network segmentation.
- Implement application-level monitoring and alerting for crashes or abnormal behavior indicative of exploitation attempts.
- Employ runtime protection mechanisms such as sandboxing or containerization to limit the impact of potential crashes.
- 6. Consider temporary workarounds such as disabling LuaJIT scripting features if feasible without impacting critical functionality. 7. Conduct penetration testing and vulnerability scanning focused on LuaJIT components to validate the effectiveness of mitigations. 8. Educate development and operations teams about the vulnerability to ensure rapid response and patch management. 9. Maintain up-to-date backups and incident response plans to recover quickly from potential denial-of-service attacks.
Description
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.
References
- github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8 (opens in a new tab)
- github.com/LuaJIT/LuaJIT/issues/1152 (opens in a new tab)
- gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8 (opens in a new tab)
- github.com/openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/08/msg00022.html (opens in a new tab)