Skip to main content
VulnerabilityPublished Updated

CVE-2024-25178: LuaJIT · Out-of-bounds Read

Affects LuaJITSource CVE Database V5

0

Not known to be exploited · CVSS 9.1 Critical : upgrade to 2.1-20240314 as a priority.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubluajit/LuaJITpkg:github/luajit/LuaJITOther threatsAffected
  • <=2.1
Fixed in–
GitHubopenresty/luajit2pkg:github/openresty/luajit2Other threatsAffected
  • <2.1-20240314
Fixed in
  • 2.1-20240314

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately inventory all systems and applications using LuaJIT or OpenRusty luajit2 to identify vulnerable versions.
  2. Restrict network access to services and applications embedding LuaJIT, especially those exposed to untrusted networks, using firewalls and network segmentation.
  3. Implement application-level monitoring and alerting for crashes or abnormal behavior indicative of exploitation attempts.
  4. Employ runtime protection mechanisms such as sandboxing or containerization to limit the impact of potential crashes.
  5. 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

Community reviews

Loading reviews…