CVE-2022-28805 Memory corruption in n/a

Critical 9.1 Published Updated

A heap-based buffer over-read in the Lua parser allows attackers to cause denial of service or disclose information by providing malicious Lua code.

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

What is CVE-2022-28805?

CVE-2022-28805 is a critical memory corruption vulnerability in Fedoraproject Fedora, published on 8 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

Weakness: CWE-125

Which versions are affected by CVE-2022-28805?

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

PackageAffectedFixed in
lua BitnamiFrom 5.4.05.4.5
Linux distribution packages (17)
lua AlmaLinux:9All versions5.4.4-3.el9
lua-devel AlmaLinux:9All versions5.4.4-3.el9
lua-libs AlmaLinux:9All versions5.4.4-3.el9
lua Red Hat:enterprise_linux:9::appstreamAll versions0:5.4.4-3.el9
lua-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:5.4.4-3.el9
lua-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:5.4.4-3.el9
lua-libs-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:5.4.4-3.el9
lua Red Hat:enterprise_linux:9::baseosAll versions0:5.4.4-3.el9
lua-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:5.4.4-3.el9
lua-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:5.4.4-3.el9
lua-libs Red Hat:enterprise_linux:9::baseosAll versions0:5.4.4-3.el9
lua-libs-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:5.4.4-3.el9
lua Red Hat:enterprise_linux:9::crbAll versions0:5.4.4-3.el9
lua-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:5.4.4-3.el9
lua-debugsource Red Hat:enterprise_linux:9::crbAll versions0:5.4.4-3.el9
lua-devel Red Hat:enterprise_linux:9::crbAll versions0:5.4.4-3.el9
lua-libs-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:5.4.4-3.el9

Products include Fedoraproject Fedora, Lua Lua.

How do I fix CVE-2022-28805?

Upgrade lua to 5.4.5 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-28805 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALPINE-CVE-2022-28805, ALSA-2023:2582, AZL-40812, AZL-9333, BIT-lua-2022-28805, DEBIAN-CVE-2022-28805 and 4 more.

Is CVE-2022-28805 in your software?

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

Check your SBOMs for free