Skip to content
Fencer Vulns
high 7.5

CVE-2022-33099 json

An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.

published 2022-07-01 4 y ago modified 2026-09-08 2 mo ago also BIT-lua-2022-33099 , EUVD-2022-36155 , JLSEC-2026-561

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

Summary

An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.

Patch / fix

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

debian advisories DEBIAN-CVE-2022-33099

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

ubuntu advisories UBUNTU-CVE-2022-33099

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.2-4.el9_0.3
  • lua-libs RHEL 9 5.4.2-4.el9_0.3

red hat advisories RHSA-2022:7329

  • lua55 openSUSE Tumbleweed 5.5.0~beta1-1.1

opensuse advisories openSUSE-SU-2025:15401-1

  • lua AlmaLinux 9 5.4.2-4.el9_0.3
  • lua-libs AlmaLinux 9 5.4.2-4.el9_0.3

almalinux advisories ALSA-2022:7329

  • lua Rocky Linux 9 5.4.2-4.el9_0.3

rocky linux advisories RLSA-2022:7329

  • lua CBL-Mariner 2.0 5.4.3-4
  • nmap Azure Linux 3.0 7.95-1
  • ntopng Azure Linux 3.0 5.2.1-4

azure linux advisories AZL-10045AZL-35032AZL-41192

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-33099 updated cvss 6.5

lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling

  • Red Hat CodeReady Linux Builder (v. 9) lua 5.4.2-4.el9_0.3 Red Hat Enterprise Linux AppStream (v. 9) lua 5.4.2-4.el9_0.3 Red Hat Enterprise Linux BaseOS (v. 9) lua 5.4.2-4.el9_0.3, lua-libs 5.4.2-4.el9_0.3
    fixed: vendor fix RHSA-2022:7329
  • 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.84% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • lua-users.org https://lua-users.org/lists/lua-l/2022-05/msg00035.html referenced PoC, tagged "exploit" by a source, unverified
  • lua-users.org https://lua-users.org/lists/lua-l/2022-05/msg00042.html referenced PoC, tagged "exploit" by a source, unverified
  • lua-users.org https://lua-users.org/lists/lua-l/2022-05/msg00073.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

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

Affected packages

ecosystem package affected fixed in
bitnami lua
>=5.4.2, <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.