Skip to main content
Public proof of conceptFix available

CVE-2020-24370

A public proof of concept exists; no exploitation attested.

  • Published2020-08-17
  • WeaknessCWE-191

Am I 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
  1. 2020-08-1717:15CVE publishedNVD

Versions per branch

NVD · OSV
Lua
BranchAffectedFixed in
5.2= 5.2.0no fix published
5.2= 5.2.1no fix published
5.2= 5.2.2no fix published
5.2= 5.2.3no fix published
5.3= 5.3.0no fix published
5.3= 5.3.1no fix published
5.3= 5.3.2no fix published
5.3= 5.3.3no fix published
5.3= 5.3.4no fix published
5.3= 5.3.5no fix published
5.4= 5.4.0no fix published
lua
BranchAffectedFixed in
5.4≥ 5.4.0, < 5.4.15.4.1
5.3≥ 5.3.0, < 5.3.65.3.6
5.2≥ 5.2.0, < 5.2.45.2.4
Fedoraproject fedora
BranchAffectedFixed in
31.x= 31no fix published
32.x= 32no fix published

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

  • CVE-2020-24370 Red Hat Product Security58 products fixed

    lua: segmentation fault in getlocal and setlocal functions in ldebug.c

  • RHSA-2021:4510 Red Hat Product Security58 products fixed

    Red Hat Security Advisory: lua security update

Full record on NVD

Fix

  1. 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

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

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?

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

Is CVE-2020-24370 actively exploited?

Active exploitation of CVE-2020-24370 has not been confirmed. Its EPSS score was 3.8% on 2026-12-04, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2020-24370?

CVE-2020-24370 has a CVSS v3 base score of 5.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

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

Sources for this record