Skip to main content
VulnerabilityPublished Updated

CVE-2024-25176: LuaJIT · Stack-based Buffer Overflow

Affects LuaJITSource CVE Database V5

0

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

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

Affected software

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

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

Community reviews

Loading reviews…