CVE-2024-25178
Luajit vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Luajit. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Luajit runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8 · Patch
- gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8 · Third Party Advisory
- github.com/LuaJIT/LuaJIT/issues/1152 · Exploit
- github.com/openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8
- lists.debian.org/debian-lts-announce/2025/08/msg00022.html
- nvd.nist.gov/vuln/detail/CVE-2024-25178
- cve.org/CVERecord?id=CVE-2024-25178
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.