# CVE-2024-25176: LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240626 have a stack-buffer-overflow in ljstrfmtwfnum in ljstrfmtnum.c.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-07T00:00:00.000Z
- Modified: 2026-06-17T07:15:38.887Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

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

## References

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

## Sources

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

---

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