# 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 ljstate.c.

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.17%, higher than 67% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-07T00:00:00.000Z
- Modified: 2026-06-17T07:15:39.223Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- luajit luajit: up to 2.1.0

## References

- <https://github.com/LuaJIT/LuaJIT/issues/1152> (exploit, issue-tracking)
- <https://github.com/LuaJIT/LuaJIT/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8> (patch)
- <https://gist.github.com/pwnhacker0x18/423b4292f301ab274b42d5ed6e0b87d8> (third-party-advisory)
- <https://github.com/openresty/luajit2/commit/defe61a56751a0db5f00ff3ab7b8f45436ba74c8>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00022.html>

## Sources

- CVE List: [CVE-2024-25178](https://www.cve.org/CVERecord?id=CVE-2024-25178), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-25178](https://nvd.nist.gov/vuln/detail/CVE-2024-25178), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-25178 · Whole record: https://cve.day/CVE-2024-25178.json · Rebuilt by cve.day 2026-11-25T22:58:52.802Z
