CVE-2024-25176: Critical severity LuaJit LuaJIT vulnerability

Published Jul 7, 2025
·
Updated

Last updated 16 July 2026

Other sources

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

MITRE

Affected Software

3 affected componentsFixes available
LuaJit LuaJIT<=2.1
LuaJit LuaJIT<=2.1.0
debian/luajit<=2.1.0~beta3+dfsg-5.3
2.1.0~beta3+dfsg-5.3+deb11u12.1.0~beta3+git20220320+dfsg-4.1+deb12u12.1.0+openresty20250117-22.1.0+openresty20251030-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/luajit to a version that resolves this vulnerability.

    Fixed in 2.1.0~beta3+dfsg-5.3+deb11u1Fixed in 2.1.0~beta3+git20220320+dfsg-4.1+deb12u1Fixed in 2.1.0+openresty20250117-2Fixed in 2.1.0+openresty20251030-1
  2. Upgrade

    Upgrade LuaJIT to a version that resolves this vulnerability.

    Fixed in 2.1-20240626

Event History

Jul 7, 2025
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 16, 2026
Data Sourced
via Ubuntu·02:38 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·02:40 PM
DescriptionAffected Software
Data Sourced
via Launchpad·02:40 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2024-25176?

CVE-2024-25176 has been identified as a critical severity vulnerability due to the potential for stack buffer overflow leading to arbitrary code execution.

2

How do I fix CVE-2024-25176?

To fix CVE-2024-25176, upgrade LuaJIT to the latest version beyond 2.1-20240626 which addresses this vulnerability.

3

What software versions are affected by CVE-2024-25176?

CVE-2024-25176 affects LuaJIT versions through 2.1 and OpenRusty luajit2 versions before v2.1-20240626.

4

What type of vulnerability is CVE-2024-25176?

CVE-2024-25176 is classified as a stack-buffer-overflow vulnerability located in the lj_strfmt_wfnum function.

5

Can CVE-2024-25176 lead to data compromise?

Yes, CVE-2024-25176 can potentially lead to data compromise through arbitrary code execution via the stack buffer overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203