Description
ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lua5.3 | 5.3.6-1 | — |
| Debian 14 | lua5.4 | 5.4.1-1 | — |
| Debian 13 | lua5.3 | 5.3.6-1 | — |
| Debian 13 | lua5.4 | 5.4.1-1 | — |
| Debian 12 | lua5.3 | 5.3.6-1 | — |
| Debian 12 | lua5.4 | 5.4.1-1 | — |
| Debian 10 | lua5.3 | 5.3.3-1.1+deb10u1 | DLA-3469-1 |
| Debian 9 | lua5.3 | 5.3.3-1+deb9u1 | DLA-2381-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | lua +2 | 5.3.4-12.el8 | RHSA-2021:4510 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | lua +2 | 5.3.4-12.el8 | ALSA-2021:4510 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | lua | 5.3.4-12.el8 | RLSA-2021:4510 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | lua53 | 5.3.6-3.6.1 | SUSE-SU-2021:2196-1 |
| SLES 15 SP2 | lua53 | 5.3.6-3.6.1 | SUSE-SU-2021:2196-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 5.0 | lua53 | 5.3.6-3.6.1 | SUSE-SU-2021:2196-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lua55 | 5.5.0~beta1-1.1 | openSUSE-SU-2025:15401-1 |
| openSUSE Leap 15.3 | lua53 | 5.3.6-3.6.1 | openSUSE-SU-2021:2196-1 |
| openSUSE Leap 15.2 | lua53 | 5.3.6-lp152.5.3.1 | openSUSE-SU-2021:0962-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | lua53 +3 | 5.3.5-7.amzn2.0.1 | ALAS2-2020-1492 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | lua | 5.4.6-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | lua +2 | 5.3.4-12.el8 | ELSA-2021-4510 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
RenukaSelvar/lua_CVE-2020-24370 ★ 0 · Nov 6, 2024
-
RenukaSelvar/lua_CVE-2020-24370_AfterPatch ★ 0 · Nov 6, 2024
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 13
- ALSA-2021:4510 Low: lua security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2022-0571 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2026
- RHSA-2021:4510 Red Hat Security Advisory: lua security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- openSUSE-SU-2025:15401-1 liblua5_5-5-5.5.0~beta1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-2381-1 lua5.3 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3469-1 lua5.3 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2021:4510 Low: lua security update Rocky Linux Security Advisories · Feb 5, 2026
- openSUSE-SU-2021:0962-1 Security update for lua53 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:2196-1 Security update for lua53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:2196-1 Security update for lua53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SCA-2025-0006 Vulnerability affecting picoScan and multiScan SICK PSIRT · Apr 28, 2025
- ELSA-2021-4510 Low: lua security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 16, 2021
- ALAS2-2020-1492 Low: lua53 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Sep 16, 2020
References
- http://lua-users.org/lists/lua-l/2020-07/msg00324.html
- https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b
- FEDORA-2020-d7ed9f18ff vendor-advisory
- FEDORA-2020-c83556709c vendor-advisory
- [debian-lts-announce] 20200926 [SECURITY] [DLA 2381-1] lua5.3 security update mailing-list
- [debian-lts-announce] 20230622 [SECURITY] [DLA 3469-1] lua5.3 security update mailing-list