CVE-2022-28805 json
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-base…
published 2022-04-08 4 y ago modified 2026-09-08 2 mo ago also BIT-lua-2022-28805 , EUVD-2022-33243 , JLSEC-2026-560
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami lua 5.4.5
- julia Lua_jll 5.4.6+0
- lua lua 5.4.5
- lua5.4 Debian 14, Debian 13, Debian 12 5.4.4-2
debian advisories DEBIAN-CVE-2022-28805
- lua5.4 Ubuntu Pro 22.04 LTS 5.4.4-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-28805
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- lua RHEL 9 5.4.4-3.el9
- lua-libs RHEL 9 5.4.4-3.el9
red hat advisories RHSA-2023:2582
- lua AlmaLinux 9 5.4.4-3.el9
- lua-libs AlmaLinux 9 5.4.4-3.el9
almalinux advisories ALSA-2023:2582
- lua5.4 Alpine 3.15, Alpine 3.14 5.4.3-r1
- lua5.4 Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 5.4.4-r4
alpine advisories ALPINE-CVE-2022-28805
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ntopng Azure Linux 3.0 5.2.1-3
- lua CBL-Mariner 2.0 5.4.3-2
azure linux advisories AZL-40812AZL-9333
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/lua/lua@1f3c6f4 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-28805 updated cvss 6.2
lua: heap buffer overread
-
Red Hat Enterprise Linux AppStream (v. 9) lua 5.4.4-3.el9 Red Hat Enterprise Linux BaseOS (v. 9) lua 5.4.4-3.el9, lua-libs 5.4.4-3.el9 Red Hat Enterprise Linux CRB (v. 9) lua 5.4.4-3.el9fixed: vendor fix RHSA-2023:2582
-
Red Hat Enterprise Linux 6 lua Red Hat Enterprise Linux 7 lua Red Hat Enterprise Linux 8 lua, lua-libs Red Hat JBoss Core Services luanot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.98% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- lua-users.org https://lua-users.org/lists/lua-l/2022-02/msg00001.html referenced PoC, tagged "exploit" by a source, unverified
- lua-users.org https://lua-users.org/lists/lua-l/2022-02/msg00070.html referenced PoC, tagged "exploit" by a source, unverified
- lua-users.org https://lua-users.org/lists/lua-l/2022-04/msg00009.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | lua | >=5.4.0, <5.4.5 |
5.4.5 |
| julia | Lua_jll | >=5.4.3+0, <5.4.6+0 |
5.4.6+0 |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa
patch, third-party-advisory, advisory, web
-
lua-users.org
/lists/lua-l/2022-02/msg00001.html
exploit, mailing-list, third-party-advisory, advisory, web
-
lua-users.org
/lists/lua-l/2022-02/msg00070.html
exploit, mailing-list, third-party-advisory, advisory, web
-
lua-users.org
/lists/lua-l/2022-04/msg00009.html
exploit, mailing-list, third-party-advisory, advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/
vendor-advisory, third-party-advisory, advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/
vendor-advisory, third-party-advisory, advisory, web
-
security.gentoo.org
/glsa/202305-23
vendor-advisory, third-party-advisory, advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-28805
web
Sources
- CVE List CVE-2022-28805
- NVD CVE-2022-28805
- OSV BIT-lua-2022-28805
- OSV JLSEC-2026-560
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.