PT-2020-6263 · Lua+8 · Lua+8
Yongheng Chen
·
Published
2020-07-24
·
Updated
2025-08-18
·
CVE-2020-24370
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
Lua version 5.4.0
Description
The issue is related to an integer overflow in the ldebug.c component of the Lua script interpreter. This can be exploited by a remote attacker to cause a denial of service. The vulnerability is demonstrated by the getlocal(3,2^31) function call, which can lead to a negation overflow and segmentation fault in getlocal and setlocal functions.
Recommendations
For Lua version 5.4.0, consider disabling the getlocal and setlocal functions in the ldebug.c component as a temporary workaround until a patch is available. Restrict access to these functions to minimize the risk of exploitation. Avoid using the getlocal function with large input values, such as 2^31, until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Integer Underflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Lua
Red Hat
Red Os
Rocky Linux
Suse