Buffer overflow in Lua
CVE-2021-45985
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.014, 73.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (gejingquan/BootHotPatch, pawan-shivarkar/pawan-shivarkar). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.lua.org/bugs.html (Vendor Advisory)
- github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5 (Patch)
- lua-users.org/lists/lua-l/2021-12/msg00019.html (Exploit, Mailing List, Vendor Advisory)