CVE-2020-24370
A public proof of concept exists; no exploitation attested.
- Published2020-08-17
- WeaknessCWE-191
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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).
Timeline
dates in UTC- 2020-08-1717:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.2 | = 5.2.0 | no fix published | NVD |
| 5.2 | = 5.2.1 | no fix published | NVD |
| 5.2 | = 5.2.2 | no fix published | NVD |
| 5.2 | = 5.2.3 | no fix published | NVD |
| 5.3 | = 5.3.0 | no fix published | NVD |
| 5.3 | = 5.3.1 | no fix published | NVD |
| 5.3 | = 5.3.2 | no fix published | NVD |
| 5.3 | = 5.3.3 | no fix published | NVD |
| 5.3 | = 5.3.4 | no fix published | NVD |
| 5.3 | = 5.3.5 | no fix published | NVD |
| 5.4 | = 5.4.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.4 | ≥ 5.4.0, < 5.4.1 | 5.4.1 | OSV |
| 5.3 | ≥ 5.3.0, < 5.3.6 | 5.3.6 | OSV |
| 5.2 | ≥ 5.2.0, < 5.2.4 | 5.2.4 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 31.x | = 31 | no fix published | NVD |
| 32.x | = 32 | no fix published | NVD |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- luaRocky Linux:8all versions · fixed in 0:5.3.4-12.el8
- luaRed Hat:enterprise_linux:8::crball versions · fixed in 0:5.3.4-12.el8and 4 other packages
- luaRed Hat:enterprise_linux:8::baseosall versions · fixed in 0:5.3.4-12.el8and 4 other packages
- luaRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:5.3.4-12.el8and 3 other packages
- luaopenEuler:20.03-LTS-SP4all versions · fixed in 5.3.5-5.oe2003sp4
- luaMageia:7all versions · fixed in 5.2.4-3.1.mga7
- luaAzure Linux:3all versions · fixed in 5.4.6-1
- luaAlmaLinux:8all versions · fixed in 5.3.4-12.el8and 2 other packages
20 more package ranges on OSV.dev
Vendor advisories
lua: segmentation fault in getlocal and setlocal functions in ldebug.c
Red Hat Security Advisory: lua security update
Fix
- Vendor fix Red Hat Product Security RHSA-2021:4510 · 58 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
Advisories and patches
- lua-users.orgVendor Advisory
- github.comPatch
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub2 repositories, unverifiedknown since 2026-11-01RenukaSelvar/lua_CVE-2020-24370RenukaSelvar/lua_CVE-2020-24370_AfterPatch
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.15.3read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-191read 2026-10-23
- FIRST EPSSEPSS score3.8 %2026-12-04
- PoC-in-GitHubproof of concept2known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-41149same flawAzure Linux · MIT
- BIT-lua-2020-24370same flawBitnami · Apache-2.0
- EUVD-2020-17102same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-gfr4-c37g-mm3vsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-555same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2021:4510advisory covering several CVEsAlmaLinux · MIT
- DLA-2381-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3469-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2020-0362advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2024-2169advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1278advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1279advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1280advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1281advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-1301advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:0962-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:2196-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15401-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:4510advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2021:4510advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:2196-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Published
- 2020-08-17
- Last modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub advisory
- GHSA-gfr4-c37g-mm3v
Frequently asked questions
What is CVE-2020-24370?
Is CVE-2020-24370 actively exploited?
What is the CVSS score for CVE-2020-24370?
Running lua? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-gfr4-c37g-mm3v
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0