Vulnerabilities / CVE-2022-28805

critical

CVE-2022-28805

lua: heap buffer overread

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Julia9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux, Bitnami, CBL-Mariner, Julia, Photon OS. Rated lower by Amazon (medium), Ubuntu (medium), Red Hat (low), AlmaLinux (low), Oracle (low).

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 and fixed versions

SourcePackageFixed in
Azure Linux 3.0ntopng0:5.2.1-3.azl3
bitnami::Bitnami Vulnerability Databaselua5.4.5
CBL-Mariner 1.0lua0:5.3.5-9.cm1
CBL-Mariner 2.0lua0:5.4.3-2.cm2
julia::Julia Ecosystem Security AdvisoriesLua_jll5.4.6+0
Photon OS 2.0lua5.3.4-2.ph2
Photon OS 3.0lua, nmap5.3.5-3.ph3 and 1 more
Photon OS 4.0lua, lua-devel5.4.4-2.ph4
Photon OS 5.0nmap, nmap-ncat7.93-7.ph5
alma 9lua, lua-devel, lua-libs5.4.4-3.el9
alpine 3.14lua5.45.4.3-r1
alpine 3.15lua5.45.4.3-r1
Show all 54 entries from 37 sources
SourcePackageFixed in
Azure Linux 3.0ntopng0:5.2.1-3.azl3
bitnami::Bitnami Vulnerability Databaselua5.4.5
CBL-Mariner 1.0lua0:5.3.5-9.cm1
CBL-Mariner 2.0lua0:5.4.3-2.cm2
julia::Julia Ecosystem Security AdvisoriesLua_jll5.4.6+0
Photon OS 2.0lua5.3.4-2.ph2
Photon OS 3.0lua5.3.5-3.ph3
Photon OS 3.0nmap7.91-2.ph3
Photon OS 4.0lua5.4.4-2.ph4
Photon OS 4.0lua-devel5.4.4-2.ph4
Photon OS 5.0nmap7.93-7.ph5
Photon OS 5.0nmap-ncat7.93-7.ph5
alma 9lua5.4.4-3.el9
alma 9lua-devel5.4.4-3.el9
alma 9lua-libs5.4.4-3.el9
alpine 3.14lua5.45.4.3-r1
alpine 3.15lua5.45.4.3-r1
alpine 3.16lua5.45.4.4-r4
alpine 3.17lua5.45.4.4-r4
alpine 3.18lua5.45.4.4-r4
alpine 3.19lua5.45.4.4-r4
alpine 3.20lua5.45.4.4-r4
alpine 3.21lua5.45.4.4-r4
alpine 3.22lua5.45.4.4-r4
alpine 3.23lua5.45.4.4-r4
alpine 3.24lua5.45.4.4-r4
alpine edgelua5.45.4.4-r4
amazon linux 2022lua5.4.4-3.amzn2022.0.1
amazon linux 2022lua-debuginfo5.4.4-3.amzn2022.0.1
amazon linux 2022lua-debugsource5.4.4-3.amzn2022.0.1
amazon linux 2022lua-devel5.4.4-3.amzn2022.0.1
amazon linux 2022lua-libs5.4.4-3.amzn2022.0.1
amazon linux 2022lua-libs-debuginfo5.4.4-3.amzn2022.0.1
amazon linux 2022lua-static5.4.4-3.amzn2022.0.1
chainguardlua5.40
conan::GitLab Advisory Database Communityluano fix listed
debian 11lua5.4no fix listed
debian 12lua5.45.4.4-2
debian 13lua5.45.4.4-2
debian 14lua5.45.4.4-2
echolua5.45.4.4-2
Oracle Linux 9lua5.4.4-3.el9
Oracle Linux 9lua-devel5.4.4-3.el9
Oracle Linux 9lua-libs5.4.4-3.el9
rapidfort Oracle Linux 9lua0:5.4.4-3.el9
rapidfort Oracle Linux 9lua-libs0:5.4.4-3.el9
rapidfort ubuntu 20.04lua5.40:5.4.4-2
rapidfort ubuntu 20.04rf-lua5.40:5.4.4-2
rapidfort ubuntu 22.04lua5.40:5.4.4-2
rapidfort ubuntu 22.04rf-lua5.40:5.4.4-2
rapidfort ubuntu 24.04lua5.40:5.4.4-2
rapidfort ubuntu 24.04rf-lua5.40:5.4.4-2
ubuntu 22.04lua5.4no fix listed
wolfilua5.40

References

All 16 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.