Heap use-after-free in Lua - CVE-2019-6706

 

Heap use-after-free in Lua - CVE-2019-6706

Published: January 27, 2019 / Updated: June 17, 2021


Vulnerability identifier: #VU17229
CSH Severity: Low
CVSS v4: 8.7 [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]
CVE-ID: CVE-2019-6706
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a geap use-after-free error in lua_upvaluejoin in lapi.c. A remote attacker who is able to trigger a debug.upvaluejoin call in which the arguments have certain relationships can cause the service to crash.


Affected software

Lua
lua5.3 (Ubuntu package)
lua5.3 (Alpine package)
lua
Red Hat Enterprise Linux for x86_64
Opensuse
Fedora
Dell PowerProtect Cyber Recovery

How to mitigate CVE-2019-6706

Install updates from vendor's website.

lua5.3 (Ubuntu package) - addressed in versions 5.3.1-1ubuntu2.1, 5.3.3-1ubuntu0.18.04.1, 5.3.3-1ubuntu0.18.10.1
lua5.3 (Alpine package) - addressed in versions 5.3.5-r0, 5.3.5-r1
lua - update to 5.3.5-3.fc29
Dell PowerProtect Cyber Recovery - update to 18.1.1.2-8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins