# 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).

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.83%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-08-17T00:00:00.000Z
- Modified: 2026-09-08T08:48:09.334Z
- Also known as: BIT-LUA-2020-24370
- Weaknesses: CWE-191
- 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lua lua: 5.2.0; 5.2.1; 5.2.2; 5.2.3; 5.3.0; 5.3.1; 5.3.2; 5.3.3; 5.3.4; 5.3.5; 5.4.0
- fedoraproject fedora: 31; 32
- debian debian_linux: 9.0
- lua (Bitnami): from 5.2.0 before 5.2.4; from 5.3.0 before 5.3.6; from 5.4.0 before 5.4.1

## Every score

- NVD: 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`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://lua-users.org/lists/lua-l/2020-07/msg00324.html> (exploit, advisory, mailing-list, vendor-advisory)
- <https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b> (advisory, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXYMCIUNGK26VHAYHGP5LPW56G2KWOHQ/> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6KONNG6UEI3FMEOY67NDZC32NBGBI44/> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/09/msg00019.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-24370> (web)

## Sources

- CVE List: [CVE-2020-24370](https://www.cve.org/CVERecord?id=CVE-2020-24370), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-24370](https://nvd.nist.gov/vuln/detail/CVE-2020-24370), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LUA-2020-24370](https://osv.dev/vulnerability/BIT-LUA-2020-24370), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-24370 · Whole record: https://cve.day/CVE-2020-24370.json · Rebuilt by cve.day 2026-11-25T22:57:54.203Z
