CVE-2024-25178

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

Critical · published July 7, 2025

CVSS v3.1
9.1
EPSS
1%
Percentile
51.2
In the wild
Unconfirmed
What it is

🔥 A sneaky out-of-bounds read lurking in LuaJIT could expose your system to serious trouble! Think of it like a waiter who accidentally spills drinks on multiple tables because the order was mixed up; a small miscalculation leads to a messy, chaotic situation! This vulnerability allows an attacker to read beyond the allocated memory, potentially leaking sensitive data or crashing the application entirely. If left unpatched, it could be a gateway for more severe attacks, compromising the integrity of your system!

Put simply

Think of it like a waiter who accidentally spills drinks on multiple tables because the order was mixed up; a small miscalculation leads to a messy, chaotic situation! LuaJIT versions through 2.1 and OpenRusty luajit2 before v2.1-20240314 contain an out-of-bounds read in the stack-overflow handler in lj_state.c, which can be exploited if an attacker manipulates stack states.

What to do

This vulnerability allows an attacker to read beyond the allocated memory, potentially leaking sensitive data or crashing the application entirely. If left unpatched, it could be a gateway for more severe attacks, compromising the integrity of your system! Update LuaJIT to version 2.1-20240314 or higher to mitigate this vulnerability. Additionally, review your stack handling code to ensure that it has robust bounds checking in place. Don't wait; take action now to secure your environment! You've got this! Just follow these steps, and you'll be back in safe territory in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00665 · 51.2th percentile
Published
2025-07-07T00:00Z
EPSS history
Timeline
  • 07 JUL 00:00Z
    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
    cvelistv5