Skip to content
OpenAdvisories
Unscored Public exploit CVE-2020-24370 EUVD-2020-17102GHSA-gfr4-c37g-mm3v

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

Published Aug 17, 2020 · Updated Aug 4, 2024 · Assigned by mitre

Description

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 lua5.3 5.3.6-1 —
Debian 14 lua5.4 5.4.1-1 —
Debian 13 lua5.3 5.3.6-1 —
Debian 13 lua5.4 5.4.1-1 —
Debian 12 lua5.3 5.3.6-1 —
Debian 12 lua5.4 5.4.1-1 —
Debian 10 lua5.3 5.3.3-1.1+deb10u1 DLA-3469-1
Debian 9 lua5.3 5.3.3-1+deb9u1 DLA-2381-1
ReleasePackageFixed inAdvisory
RHEL 8 lua +2 5.3.4-12.el8 RHSA-2021:4510

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 lua +2 5.3.4-12.el8 ALSA-2021:4510

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 lua 5.3.4-12.el8 RLSA-2021:4510
ReleasePackageFixed inAdvisory
SLES 15 SP3 lua53 5.3.6-3.6.1 SUSE-SU-2021:2196-1
SLES 15 SP2 lua53 5.3.6-3.6.1 SUSE-SU-2021:2196-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 5.0 lua53 5.3.6-3.6.1 SUSE-SU-2021:2196-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed lua55 5.5.0~beta1-1.1 openSUSE-SU-2025:15401-1
openSUSE Leap 15.3 lua53 5.3.6-3.6.1 openSUSE-SU-2021:2196-1
openSUSE Leap 15.2 lua53 5.3.6-lp152.5.3.1 openSUSE-SU-2021:0962-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 lua53 +3 5.3.5-7.amzn2.0.1 ALAS2-2020-1492

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 lua 5.4.6-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 lua +2 5.3.4-12.el8 ELSA-2021-4510

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 13

References