cve.bz

CVE-2020-24370 Integer Underflow (Wrap or Wraparound)

5.3 mediumExploit referenceEPSS 3.8%Fix available

Medium (5.3). EPSS 3.8% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
3.8% (unchanged from 3.8% a week ago; 3.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-191 Integer Underflow (Wrap or Wraparound)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-24370 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-24370?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-24370?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-24370 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
lua:lua5.2.0
lua:lua5.2.0:alpha
lua:lua5.2.0:beta
lua:lua5.2.1
lua:lua5.2.2
lua:lua5.2.3
lua:lua5.3.0
lua:lua5.3.0:alpha
lua:lua5.3.0:beta
lua:lua5.3.1
lua:lua5.3.2
lua:lua5.3.3
lua:lua5.3.4
lua:lua5.3.5
lua:lua5.4.0
lua:lua5.4.0:alpha
lua:lua5.4.0:beta
fedoraproject:fedora31
fedoraproject:fedora32
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9lua5.35.3.3-1+deb9u1DLA-2381-1
Debian10lua5.35.3.3-1.1+deb10u1DLA-3469-1
Debian12, 13, 14lua5.35.3.6-1DEBIAN-CVE-2020-24370
Debian12, 13, 14lua5.45.4.1-1DEBIAN-CVE-2020-24370
Red Hatenterprise_linux:8::appstreamlua, lua-debuginfo, lua-debugsource and 1 more0:5.3.4-12.el8RHSA-2021:4510
Red Hatenterprise_linux:8::baseoslua, lua-libs, lua-debuginfo and 2 more0:5.3.4-12.el8RHSA-2021:4510
Red Hatenterprise_linux:8::crblua, lua-devel, lua-debuginfo and 2 more0:5.3.4-12.el8RHSA-2021:4510
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3lua535.3.6-3.6.1SUSE-SU-2021:2196-1
openSUSELeap 15.2lua535.3.6-lp152.5.3.1openSUSE-SU-2021:0962-1
openSUSELeap 15.3lua535.3.6-3.6.1openSUSE-SU-2021:2196-1
openSUSETumbleweedlua555.5.0~beta1-1.1openSUSE-SU-2025:15401-1
AlmaLinux8lua, lua-libs, lua-devel5.3.4-12.el8ALSA-2021:4510
Rocky Linux8lua0:5.3.4-12.el8RLSA-2021:4510
Azure Linux3lua5.4.6-1AZL-41149

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8lua-0:5.3.4-12.el8Fixed 2021-11-09RHSA-2021:4510
Red Hat Enterprise Linux 6luaNot affected
Red Hat Enterprise Linux 7luaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-24370.

References

Check your stackJSON