CVEfocus › CVE database › CVE-2022-28805

CVE-2022-28805

EPSS 2.6% (higher than 86% of CVEs)Published 2022-04-08Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
9Fix pending
29Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.1Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.2Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.3Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.4Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 22.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 22.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 22.04lua5.4Fix pending5.4.4-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-28805
Ubuntu 20.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 20.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 20.04lua50Not affected
vulnerable_code_not_present
Ubuntu 18.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 18.04lua5.2Fix pending
Ubuntu 18.04lua5.3Fix pending
Ubuntu 18.04lua50Fix pending
Ubuntu 16.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 16.04lua5.2Fix pending
Ubuntu 16.04lua5.3Fix pending
Ubuntu 16.04lua50Fix pending
Ubuntu 14.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 14.04lua5.2Fix pending
Ubuntu 14.04lua50Fix pending
Debian 14lua5.4Fixed5.4.4-2DEBIAN-CVE-2022-28805
Debian 13lua5.4Fixed5.4.4-2DEBIAN-CVE-2022-28805
Debian 12lua5.4Fixed5.4.4-2DEBIAN-CVE-2022-28805
Red Hat Enterprise Linux 9luaFixed0:5.4.4-3.el9RHSA-2023:2582
Red Hat Enterprise Linux 9lua-develFixed0:5.4.4-3.el9RHSA-2023:2582
Red Hat Enterprise Linux 9lua-libsFixed0:5.4.4-3.el9RHSA-2023:2582
Red Hat Enterprise Linux 8luaNot affected
Red Hat Enterprise Linux 8lua-develNot affected
Red Hat Enterprise Linux 8lua-libsNot affected
Red Hat Enterprise Linux 7luaNot affected
Red Hat Enterprise Linux 7lua-develNot affected
Red Hat Enterprise Linux 7lua-staticNot affected
Red Hat Enterprise Linux 6luaNot affected
Red Hat Enterprise Linux 6lua-develNot affected
Red Hat Enterprise Linux 6lua-staticNot affected
AlmaLinux 9luaFixed5.4.4-3.el9ALSA-2023:2582
AlmaLinux 9lua-develFixed5.4.4-3.el9ALSA-2023:2582
AlmaLinux 9lua-libsFixed5.4.4-3.el9ALSA-2023:2582
Alpine Linux 3.24lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.23lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.22lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.21lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.20lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.19lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.18lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.17lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.16lua5.4Fixed5.4.4-r4ALPINE-CVE-2022-28805
Alpine Linux 3.15lua5.4Fixed5.4.3-r1ALPINE-CVE-2022-28805
Alpine Linux 3.14lua5.4Fixed5.4.3-r1ALPINE-CVE-2022-28805

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.