Buffer overflow in Lua - CVE-2020-24342

 

Buffer overflow in Lua - CVE-2020-24342

Published: August 13, 2020 / Updated: November 19, 2020


Vulnerability identifier: #VU48559
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-24342
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls luaD_callnoyield twice in a row. A remote attacker can pass specially crafted data to the application, trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Lua
Fedora
lua

How to mitigate CVE-2020-24342

Install updates from vendor's website.

Lua - update to 5.4.1
lua - update to 5.4.0-7.fc33

External References

Related Security Bulletins