CVE-2024-25176 Memory corruption in n/a

Critical 9.8 Published Updated

A stack-buffer-overflow in LuaJIT allows attackers to execute arbitrary code or cause denial of service via crafted numeric formatting.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-25176?

CVE-2024-25176 is a critical memory corruption vulnerability in n/a, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-121

Which versions are affected by CVE-2024-25176?

It affects 1 product.

Products include Luajit Luajit.

How do I fix CVE-2024-25176?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-25176 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25176 exists.

Sources

Also known as ALPINE-CVE-2024-25176, AZL-65370, AZL-65394, AZL-65427, BELL-CVE-2024-25176, DEBIAN-CVE-2024-25176 and 4 more.

Is CVE-2024-25176 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free