CVE-2022-28805
JSON

9.1critical

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaKexp2anyregup call, leading to a heap-based…

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
2.57% (higher than 86% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
BIT-LUA-2022-28805

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
lua luafrom 5.4.0 before 5.4.5NVD
fedoraproject fedora35, 36NVD
lua (Bitnami)from 5.4.0 before 5.4.5Bitnami Vulnerability Database

All scores

NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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.

NVD (es)

singlevar en lparser.c en Lua desde (incluyendo) 5.4.0 hasta (excluyendo) 5.4.4 carece de una determinada llamada a luaK_exp2anyregup, lo que lleva a una sobrelectura del búfer basada en la pila que podría afectar a un sistema que compila código Lua no fiable

References

https://lua-users.org/lists/lua-l/2022-02/msg00001.htmladvisory, exploit, mailing-list, third-party-advisory
https://lua-users.org/lists/lua-l/2022-02/msg00070.htmladvisory, exploit, mailing-list, third-party-advisory
https://lua-users.org/lists/lua-l/2022-04/msg00009.htmladvisory, exploit, mailing-list, third-party-advisory
https://github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030faadvisory, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/advisory, third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/advisory, third-party-advisory, vendor-advisory
https://security.gentoo.org/glsa/202305-23advisory, third-party-advisory, vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2022-28805web

Sources

SourceRecordLicence
CVE ListCVE-2022-28805 changed 2024-08-03CVE Terms of Use
NVDCVE-2022-28805 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LUA-2022-28805 changed 2026-09-08Apache-2.0