Out-of-bounds Read in Lua
CVE-2022-28805
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.
EPSS exploit prediction
EPSS 0.030, 87.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Lua
- Fedoraproject Fedora — versions 35, 36
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (lengjingzju/cbuild, lengjingzju/cbuild-ng). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- lua-users.org/lists/lua-l/2022-02/msg00001.html (Exploit, Mailing List, Third Party Advisory)
- lua-users.org/lists/lua-l/2022-02/msg00070.html (Exploit, Mailing List, Third Party Advisory)
- lua-users.org/lists/lua-l/2022-04/msg00009.html (Exploit, Mailing List, Third Party Advisory)
- github.com/lua/lua/commit/1f3c6f4534c6411313361697d98d1145a1f030fa (Patch, Third Party Advisory)
- FEDORA-2022-b9ed35a7ad (vendor-advisory, Third Party Advisory)
- FEDORA-2022-5b5889f43a (vendor-advisory, Third Party Advisory)
- GLSA-202305-23 (vendor-advisory, Third Party Advisory)