Description
Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer over-read, or use-after-free.
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.1-1 | — |
| Debian 13 | lua5.4 | 5.4.1-1 | — |
| Debian 12 | lua5.4 | 5.4.1-1 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | lua55 | 5.5.0~beta1-1.1 | openSUSE-SU-2025:15401-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | lua | 5.3.5-11 | — |
Advisories 2
- openSUSE-SU-2025:15401-1 liblua5_5-5-5.5.0~beta1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SCA-2025-0006 Vulnerability affecting picoScan and multiScan SICK PSIRT · Apr 28, 2025
References
- https://github.com/lua/lua/commit/eb41999461b6f428186c55abd95f4ce1a76217d5
- https://github.com/lua/lua/commit/6298903e35217ab69c279056f925fb72900ce0b7
- http://lua-users.org/lists/lua-l/2020-07/msg00053.html
- http://lua-users.org/lists/lua-l/2020-07/msg00054.html
- http://lua-users.org/lists/lua-l/2020-07/msg00071.html
- http://lua-users.org/lists/lua-l/2020-07/msg00079.html