CVE-2020-24370
CVE-2020-24370 is a medium-severity vulnerability in Lua with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-191.
Key facts
- Severity: Medium (CVSS 3.x base score 5.3)
- CVSS v2: 5.0
- EPSS exploit prediction: 4% (89th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-191
- Affected product: Lua
- Published:
- Last modified:
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).
Frequently asked questions
- What is CVE-2020-24370?
- 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).
- How severe is CVE-2020-24370?
- CVE-2020-24370 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability low.
- Is CVE-2020-24370 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (89th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2020-24370?
- CVE-2020-24370 primarily affects Lua. In total, 20 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2020-24370?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2020-24370 published?
- CVE-2020-24370 was published on 2020-08-17 and last updated on 2026-06-17.
References
- http://lua-users.org/lists/lua-l/2020-07/msg00324.html
- https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b
- https://lists.debian.org/debian-lts-announce/2020/09/msg00019.html
- https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6KONNG6UEI3FMEOY67NDZC32NBGBI44/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXYMCIUNGK26VHAYHGP5LPW56G2KWOHQ/
Affected products (20)
- cpe:2.3:a:lua:lua:5.2.0:-:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.2.0:alpha:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.2.0:beta:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.2.1:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.2.2:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.2.3:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.0:-:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.0:alpha:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.0:beta:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.1:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.2:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.3:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.4:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.3.5:*:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.4.0:-:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.4.0:alpha:*:*:*:*:*:*
- cpe:2.3:a:lua:lua:5.4.0:beta:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
More vulnerabilities in Lua
- CVE-2020-15889 — Critical (CVSS 9.8): Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an…
- CVE-2022-28805 — Critical (CVSS 9.1): singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call,…
- CVE-2020-15888 — High (CVSS 8.8): Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based…
- CVE-2020-24342 — High (CVSS 7.8): Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls…
- CVE-2021-45985 — High (CVSS 7.5): In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
- CVE-2022-33099 — High (CVSS 7.5): An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error…
Other CWE-191 (Integer Underflow) vulnerabilities
- CVE-2007-0063 — Critical (CVSS 10.0): Integer underflow in the DHCP server in EMC VMware Workstation before 5.5.5 Build 56455 and 6.x before 6.0.1 Build…
- CVE-2026-53176 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: IB/isert: Reject login PDUs shorter than…
- CVE-2026-37534 — Critical (CVSS 9.8): Integer underflow vulnerability in Open-SAE-J1939 thru commit b6caf884df46435e539b1ecbf92b6c29b345bdfe (2025-11-30) in…
- CVE-2025-52471 — Critical (CVSS 9.8): ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. An integer underflow vulnerability has been…
- CVE-2025-29909 — Critical (CVSS 9.8): CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures…
- CVE-2024-47606 — Critical (CVSS 9.8): GStreamer is a library for constructing graphs of media-handling components. An integer underflow has been detected in…