Skip to content
Fencer Vulns
critical 9.1

CVE-2022-28805 json

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-base…

published 2022-04-08 4 y ago modified 2026-09-08 2 mo ago also BIT-lua-2022-28805 , EUVD-2022-33243 , JLSEC-2026-560

cvss
9.1
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.0%
EPSS 3.0% chance of exploitation in 30 days, percentile 87%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami lua 5.4.5
  • julia Lua_jll 5.4.6+0
  • lua lua 5.4.5
  • lua5.4 Debian 14, Debian 13, Debian 12 5.4.4-2

debian advisories DEBIAN-CVE-2022-28805

  • lua5.4 Ubuntu Pro 22.04 LTS 5.4.4-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-28805

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • lua RHEL 9 5.4.4-3.el9
  • lua-libs RHEL 9 5.4.4-3.el9

red hat advisories RHSA-2023:2582

  • lua AlmaLinux 9 5.4.4-3.el9
  • lua-libs AlmaLinux 9 5.4.4-3.el9

almalinux advisories ALSA-2023:2582

  • lua5.4 Alpine 3.15, Alpine 3.14 5.4.3-r1
  • lua5.4 Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 5.4.4-r4

alpine advisories ALPINE-CVE-2022-28805

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ntopng Azure Linux 3.0 5.2.1-3
  • lua CBL-Mariner 2.0 5.4.3-2

azure linux advisories AZL-40812AZL-9333

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-28805 updated cvss 6.2

lua: heap buffer overread

  • Red Hat Enterprise Linux AppStream (v. 9) lua 5.4.4-3.el9 Red Hat Enterprise Linux BaseOS (v. 9) lua 5.4.4-3.el9, lua-libs 5.4.4-3.el9 Red Hat Enterprise Linux CRB (v. 9) lua 5.4.4-3.el9
    fixed: vendor fix RHSA-2023:2582
  • Red Hat Enterprise Linux 6 lua Red Hat Enterprise Linux 7 lua Red Hat Enterprise Linux 8 lua, lua-libs Red Hat JBoss Core Services lua
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.98% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • lua-users.org https://lua-users.org/lists/lua-l/2022-02/msg00001.html referenced PoC, tagged "exploit" by a source, unverified
  • lua-users.org https://lua-users.org/lists/lua-l/2022-02/msg00070.html referenced PoC, tagged "exploit" by a source, unverified
  • lua-users.org https://lua-users.org/lists/lua-l/2022-04/msg00009.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD 2.0 6.4 AV:N/AC:L/Au:N/C:P/I:N/A:P
OSV 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected packages

ecosystem package affected fixed in
bitnami lua
>=5.4.0, <5.4.5
5.4.5
julia Lua_jll
>=5.4.3+0, <5.4.6+0
5.4.6+0

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.