CVE-2024-25178 Memory corruption in n/a

Critical 9.1 Published Updated

An out-of-bounds read in LuaJIT's stack-overflow handler allows attackers to cause denial of service or disclose sensitive memory contents.

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-25178?

CVE-2024-25178 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-20240314 have an out-of-bounds read in the stack-overflow handler in lj_state.c.

Weakness: CWE-125

Which versions are affected by CVE-2024-25178?

It affects 1 product.

Products include Luajit Luajit.

How do I fix CVE-2024-25178?

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-25178 being exploited?

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

Sources

Also known as ALPINE-CVE-2024-25178, AZL-65373, AZL-65391, AZL-65424, BELL-CVE-2024-25178, DEBIAN-CVE-2024-25178 and 4 more.

Is CVE-2024-25178 in your software?

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

Check your SBOMs for free