Vulnerability · Published Apr 8, 2022 · Assigned by mitre
CVE-2022-28805
Critical 9.1
In plain English
A critical-severity security flaw in the lua package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.0% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.1Critical
Exploit odds (30 days)3.0%top 12.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | lua | 5.4.4-3.el9 | ALSA-2023:2582 |
| AlmaLinux:9 | lua-devel | 5.4.4-3.el9 | ALSA-2023:2582 |
| AlmaLinux:9 | lua-libs | 5.4.4-3.el9 | ALSA-2023:2582 |
| Alpine:v3.20 | lua5.4 | 5.4.4-r4 | ALPINE-CVE-2022-28805 |
| Alpine:v3.21 | lua5.4 | 5.4.4-r4 | ALPINE-CVE-2022-28805 |
| Alpine:v3.22 | lua5.4 | 5.4.4-r4 | ALPINE-CVE-2022-28805 |
| Alpine:v3.23 | lua5.4 | 5.4.4-r4 | ALPINE-CVE-2022-28805 |
| Alpine:v3.24 | lua5.4 | 5.4.4-r4 | ALPINE-CVE-2022-28805 |
| Debian:12 | lua5.4 | 5.4.4-2 | DEBIAN-CVE-2022-28805 |
| Debian:13 | lua5.4 | 5.4.4-2 | DEBIAN-CVE-2022-28805 |
| Debian:14 | lua5.4 | 5.4.4-2 | DEBIAN-CVE-2022-28805 |
Affected products (as reported)
References
- https://lua-users.org/lists/lua-l/2022-02/msg00001.html
- https://lua-users.org/lists/lua-l/2022-02/msg00070.html
- https://lua-users.org/lists/lua-l/2022-04/msg00009.html
- https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa
- FEDORA-2022-b9ed35a7ad vendor-advisory
- FEDORA-2022-5b5889f43a vendor-advisory
- GLSA-202305-23 vendor-advisory