High severity · published Jul 21, 2020
CVE-2020-15888
Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer over-read, or use-after-free
8.8
CVSS
2.4%
EPSS
No
On KEV
Description
Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer over-read, or use-after-free.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.4% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LU
Lua · Lua
5.4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-15888
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-15888
Exploit
http://lua-users.org/lists/lua-l/2020-07/msg00053.html
Exploit
http://lua-users.org/lists/lua-l/2020-07/msg00054.html
Exploit
http://lua-users.org/lists/lua-l/2020-07/msg00071.html
Exploit
http://lua-users.org/lists/lua-l/2020-07/msg00079.html
Patch
https://github.com/lua/lua/commit/6298903e35217ab69c279056f925fb72900ce0b7
Patch
https://github.com/lua/lua/commit/eb41999461b6f428186c55abd95f4ce1a76217d5
More from Lua
9.8
CVE-2020-15889
Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list members
9.1
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…
7.8
CVE-2020-24342
Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls luaD_callnoyield twice in a row
7.5
CVE-2021-45985
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read
7.5
CVE-2022-33099
An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs
