Memory corruption in Lua - CVE-2020-15945

 

Memory corruption in Lua - CVE-2020-15945

Published: July 24, 2020 / Updated: November 19, 2020


Vulnerability identifier: #VU48558
CSH Severity: Medium
CVSS v4 BT: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID: CVE-2020-15945
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a segmentation fault in changedline in ldebug.c (e.g., when called by luaG_traceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function. A remote attacker can pass specially crafted data to the application and crash it.


Affected software

Lua

How to mitigate CVE-2020-15945

Install updates from vendor's website.

Lua - update to 5.4.1

External References

Related Security Bulletins