# CVE-2022-28805: liblua5.4-0: singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call,...

CVE-2022-28805 is fixed in 5 products on 1 platform, first by DEBIAN-CVE-2022-28805, released April 8, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-28805
- Priority: High
- CVSS: 9.1 (Medium)
- EPSS: 0.0298
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 7, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | liblua5.4-0 Ubuntu 22.04.1 LTS (jammy) | 5.4.4-1ubuntu0.1~esm1 | [liblua5.4-0 5.4.4-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-liblua5.4-0-5.4.4-1ubuntu0.1-esm1.md) | Jul 1, 2022 |
| Linux | lua RHEL 9 | 0:5.4.4-3.el9 | [RHSA-2023:2582](https://patchblox.com/security/data/fix/linux/rhsa-2023-2582.md) | May 9, 2023 |
| Linux | lua almalinux 9 | 5.4.4-3.el9 | [ALSA-2023:2582](https://patchblox.com/security/data/fix/linux/alsa-2023-2582.md) | May 9, 2023 |
| Linux | lua ol 9 | 0:5.4.4-3.el9 | [ELSA-2023-2582](https://patchblox.com/security/data/fix/linux/elsa-2023-2582.md) | May 15, 2023 |
| Linux | lua-devel RHEL 9 | 0:5.4.4-3.el9 | [RHSA-2023:2582](https://patchblox.com/security/data/fix/linux/rhsa-2023-2582.md) | May 9, 2023 |
| Linux | lua-devel almalinux 9 | 5.4.4-3.el9 | [ALSA-2023:2582](https://patchblox.com/security/data/fix/linux/alsa-2023-2582.md) | May 9, 2023 |
| Linux | lua-devel ol 9 | 0:5.4.4-3.el9 | [ELSA-2023-2582](https://patchblox.com/security/data/fix/linux/elsa-2023-2582.md) | May 15, 2023 |
| Linux | lua-libs RHEL 9 | 0:5.4.4-3.el9 | [RHSA-2023:2582](https://patchblox.com/security/data/fix/linux/rhsa-2023-2582.md) | May 9, 2023 |
| Linux | lua-libs almalinux 9 | 5.4.4-3.el9 | [ALSA-2023:2582](https://patchblox.com/security/data/fix/linux/alsa-2023-2582.md) | May 9, 2023 |
| Linux | lua-libs ol 9 | 0:5.4.4-3.el9 | [ELSA-2023-2582](https://patchblox.com/security/data/fix/linux/elsa-2023-2582.md) | May 15, 2023 |
| Linux | lua5.4 Debian 12.15 (bookworm) | 5.4.4-2 | [DEBIAN-CVE-2022-28805](https://patchblox.com/security/data/fix/linux/debian-cve-2022-28805.md) | Apr 8, 2022 |
| Linux | lua5.4 Debian 13.5 (trixie) | 5.4.4-2 | [DEBIAN-CVE-2022-28805](https://patchblox.com/security/data/fix/linux/debian-cve-2022-28805.md) | Apr 8, 2022 |
| Linux | lua5.4 Debian 14 | 5.4.4-2 | [DEBIAN-CVE-2022-28805](https://patchblox.com/security/data/fix/linux/debian-cve-2022-28805.md) | Apr 8, 2022 |
| Linux | lua5.4 Ubuntu 22.04.1 LTS (jammy) | 5.4.4-1ubuntu0.1~esm1 | [lua5.4 5.4.4-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-lua5.4-5.4.4-1ubuntu0.1-esm1.md) | Jul 1, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
