Description
An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.
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.4 | 5.4.4-3 | — |
| Debian 13 | lua5.4 | 5.4.4-3 | — |
| Debian 12 | lua5.4 | 5.4.4-3 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | lua5.4 | 5.4.4-1ubuntu0.1~esm1 | USN-6916-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | lua +2 | 5.4.2-4.el9_0.3 | RHSA-2022:7329 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | lua +2 | 5.4.2-4.el9_0.3 | ALSA-2022:7329 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | lua | 5.4.2-4.el9_0.3 | RLSA-2022:7329 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lua55 | 5.5.0~beta1-1.1 | openSUSE-SU-2025:15401-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | lua +3 | 5.4.4-3.amzn2023.0.2 | ALAS2023-2024-533 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nmap | 7.95-1 | — |
| Azure Linux 3 | ntopng | 5.2.1-4 | — |
| Azure Linux 2 (CBL-Mariner) | lua | 5.4.3-4 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | lua +2 | 5.4.2-4.el9_0.3 | ELSA-2022-7329 |
Advisories 11
- ALSA-2022:7329 Moderate: lua security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-2031 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 11, 2026
- RHSA-2022:7329 Red Hat Security Advisory: lua security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-6916-1 lua5.4 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 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
- RLSA-2022:7329 Moderate: lua security update Rocky Linux Security Advisories · Feb 4, 2026
- WID-SEC-2023-1542 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- WID-SEC-2022-1951 Red Hat Enterprise Linux (lua): Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Aug 4, 2025
- SCA-2025-0006 Vulnerability affecting picoScan and multiScan SICK PSIRT · Apr 28, 2025
- ALAS2023-2024-533 Moderate: lua security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 9, 2024
- ELSA-2022-7329 Moderate: lua security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Nov 2, 2022
References
- https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf
- https://lua-users.org/lists/lua-l/2022-05/msg00035.html
- https://lua-users.org/lists/lua-l/2022-05/msg00042.html
- https://lua-users.org/lists/lua-l/2022-05/msg00073.html
- https://www.lua.org/bugs.html#Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error:~:text=Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error
- FEDORA-2022-b9ed35a7ad vendor-advisory
- FEDORA-2022-5b5889f43a vendor-advisory