CVE-2020-24372
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
CVE-2020-24372 is a high vulnerability (CVSS 7.5) in Luajit, published August 17, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.54%, the 74th percentile. Fixed in luajit 2.1.0~beta3+git20210112+dfsg-2.
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
CVE-2020-24372- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
CVE-2020-24372- Updated
- 2026-11-02
EUVDEUVD-2020-17104 No score
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
EUVD-2020-17104- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-cf74-x979-rggp
7.5
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
GHSA-cf74-x979-rggp- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSV
7.5
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
CVE-2020-24372- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-24372
7.5
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
DEBIAN-CVE-2020-24372- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2021-1057
7.5
luajit security update
LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language. Lua is a powerful, dynamic and light-weight programming language. It may be embedded or used as a general-purpose, stand-alone language.
Security Fix(es):
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.(CVE-2020-24372)
- Record
OESA-2021-1057- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-24372
7.5
LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c.
- Record
UBUNTU-CVE-2020-24372- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVMGASA-2026-0225 No score
Updated luajit packages fix security vulnerabilities
In LuaJIT through 2.0.5, as used in Moonjit before 2.1.2 and other products, debug.getinfo has a type confusion issue that leads to arbitrary memory write or read operations, because certain cases involving valid stack levels and > options are mishandled. (CVE-2019-19391) LuaJIT through 2.1.0-beta3 has an out-of-bounds read in lj_err_run in lj_err.c. (CVE-2020-24372) 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. (CVE-2024-25176) LuaJIT through 2.1 and OpenRusty luajit2 before v2.1-20240314 have an unsinking of IR_FSTORE for NULL metatable, which leads to Denial of Service (DoS). (CVE-2024-25177) 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. (CVE-2024-25178)
- Record
MGASA-2026-0225- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
luajitDebian:12 |
before 2.1.0~beta3+git20210112+dfsg-2 | 2.1.0~beta3+git20210112+dfsg-2 |
luajitDebian:13 |
before 2.1.0~beta3+git20210112+dfsg-2 | 2.1.0~beta3+git20210112+dfsg-2 |
luajitDebian:14 |
before 2.1.0~beta3+git20210112+dfsg-2 | 2.1.0~beta3+git20210112+dfsg-2 |
luajitDebian:11 |
before 2.1.0~beta3+dfsg-5.3+deb11u1, plus listed versions 2.1.0~beta3+dfsg-5.3 |
2.1.0~beta3+dfsg-5.3+deb11u1 |
luajitMageia:9 |
before 2.1.0-0.beta3.10.1.mga9 | 2.1.0-0.beta3.10.1.mga9 |
luajitopenEuler:20.03-LTS |
before 2.1.0-2.oe1 | 2.1.0-2.oe1 |
luajitopenEuler:20.03-LTS-SP1 |
before 2.1.0-2.oe1 | 2.1.0-2.oe1 |
luajitUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 2.0.2+dfsg-12.0.2+dfsg-1ubuntu0.1~esm1 |
None known |
luajitUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.0.4+dfsg-12.0.4+dfsg-1+deb9u1build0.16.04.12.0.4+dfsg-1+deb9u1ubuntu0.1~esm1 |
None known |
luajitUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 2.0.4+dfsg-12.1.0~beta3+dfsg-52.1.0~beta3+dfsg-5.12.1.0~beta3+dfsg-5.1ubuntu0.18.04.1~esm1 |
None known |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
luajitUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 2.1.0~beta3+dfsg-5.12.1.0~beta3+dfsg-5.1build12.1.0~beta3+dfsg-5.1ubuntu0.20.04.1~esm1 |
None known |
luajitUbuntu:22.04:LTS |
All versions, plus listed versions 2.1.0~beta3+dfsg-62.1.0~beta3+dfsg-6ubuntu0.1 |
None known |
luajitUbuntu:24.04:LTS |
All versions, plus listed versions 2.1.0~beta3+git20220320+dfsg-4.12.1.0+git20231223.c525bcb+dfsg-1~build12.1.0+git20231223.c525bcb+dfsg-12.1.0+git20231223.c525bcb+dfsg-1ubuntu0.1 |
None known |
luajitUbuntu:25.10 |
All versions, plus listed versions 2.1.0+openresty20250117-22.1.0+openresty20250117-2ubuntu1 |
None known |
luajitUbuntu:26.10 |
All versions, plus listed versions 2.1.0+openresty20251030-1 |
None known |
luajitUbuntu:26.04:LTS |
All versions, plus listed versions 2.1.0+openresty20250117-2ubuntu12.1.0+openresty20251030-1 |
None known |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
github.com/LuaJIT/LuaJIT/issues/603
lists.debian.org/debian-lts-announce/2025/08/msg00022.html
nvd.nist.gov/vuln/detail/CVE-2020-24372
github.com/advisories/GHSA-cf74-x979-rggp
security-tracker.debian.org/tracker/CVE-2020-24372
advisories.mageia.org/MGASA-2026-0225.html