CVE-2020-24370 Integer overflow in n/a

Medium 5.3 Published Updated

An integer overflow in Lua's debug functions causes a segmentation fault, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-24370?

CVE-2020-24370 is a medium-severity vulnerability in Debian Debian Linux, published on 17 Aug 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-191

Which versions are affected by CVE-2020-24370?

1 open source package ship an affected version, including lua. It affects 3 products.

PackageAffectedFixed in
lua BitnamiFrom 5.2.05.2.4, 5.3.6, 5.4.1
Linux distribution packages (18)
lua AlmaLinux:8All versions5.3.4-12.el8
lua-devel AlmaLinux:8All versions5.3.4-12.el8
lua-libs AlmaLinux:8All versions5.3.4-12.el8
lua Red Hat:enterprise_linux:8::appstreamAll versions0:5.3.4-12.el8
lua-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:5.3.4-12.el8
lua-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:5.3.4-12.el8
lua-libs-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:5.3.4-12.el8
lua Red Hat:enterprise_linux:8::baseosAll versions0:5.3.4-12.el8
lua-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:5.3.4-12.el8
lua-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:5.3.4-12.el8
lua-libs Red Hat:enterprise_linux:8::baseosAll versions0:5.3.4-12.el8
lua-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:5.3.4-12.el8
lua Red Hat:enterprise_linux:8::crbAll versions0:5.3.4-12.el8
lua-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:5.3.4-12.el8
lua-debugsource Red Hat:enterprise_linux:8::crbAll versions0:5.3.4-12.el8
lua-devel Red Hat:enterprise_linux:8::crbAll versions0:5.3.4-12.el8
lua-libs-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:5.3.4-12.el8
lua Rocky Linux:8All versions0:5.3.4-12.el8

Products include Debian Debian Linux, Fedoraproject Fedora, Lua Lua.

How do I fix CVE-2020-24370?

Upgrade lua to a fixed version for your release line: 5.2.4, 5.3.6 or 5.4.1.

Is CVE-2020-24370 being exploited?

There is no known exploitation of CVE-2020-24370 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALSA-2021:4510, AZL-41149, BIT-lua-2020-24370, DEBIAN-CVE-2020-24370, DLA-2381-1, GHSA-gfr4-c37g-mm3v and 10 more.

Is CVE-2020-24370 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free