CVE-2022-33099
published 2022-07-01CVE-2022-33099: 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.
PriorityP339high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
2.50%
82.9th percentile
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.
Affected
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | lua5.1 | < lua5.4 5.4.4-3 (bookworm) | lua5.4 5.4.4-3 (bookworm) |
| debian | lua5.2 | < lua5.4 5.4.4-3 (bookworm) | lua5.4 5.4.4-3 (bookworm) |
| debian | lua5.3 | < lua5.4 5.4.4-3 (bookworm) | lua5.4 5.4.4-3 (bookworm) |
| debian | lua5.4 | < lua5.4 5.4.4-3 (bookworm) | lua5.4 5.4.4-3 (bookworm) |
| debian | lua50 | < lua5.4 5.4.4-3 (bookworm) | lua5.4 5.4.4-3 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| lua | lua | 5.4.2 – 5.4.4 | — |
| msrc | azl3_ceph_18.2.2-8_on_azure_linux_3.0 | — | — |
| msrc | azl3_memcached_1.6.27-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_nmap_7.94-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_nmap_7.95-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_ntopng_5.2.1-4_on_azure_linux_3.0 | — | — |
| msrc | azl3_ntopng_5.2.1-5_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_lua_5.4.3-4_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_lua_5.3.5-9_on_cbl_mariner_1.0 | — | — |
| paloalto | cortex_xdr | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv9.1CRITICAL
vendor_ubuntu9.1CRITICAL
vendor_debian7.5LOW
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
lua5.4 vulnerabilities
osv·2024-07-29·CVSS 9.1
CVE-2022-28805 [CRITICAL] lua5.4 vulnerabilities
lua5.4 vulnerabilities
It was discovered that Lua did not properly generate code when "_ENV" is
constant. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary unstrusted lua code. (CVE-2022-28805)
It was discovered that Lua did not properly handle C stack overflows during
error handling. An attacker could possibly use this issue to cause a denial
of service. (CVE-2022-33099)
GHSA
GHSA-39jx-jr53-979c: An issue in the component luaG_runerror of Lua v5
ghsa_unreviewed·2022-07-02
CVE-2022-33099 [HIGH] CWE-787 GHSA-39jx-jr53-979c: An issue in the component luaG_runerror of Lua v5
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.
OSV
CVE-2022-33099: An issue in the component luaG_runerror of Lua v5
osv·2022-07-01·CVSS 7.5
CVE-2022-33099 [HIGH] CVE-2022-33099: An issue in the component luaG_runerror of Lua v5
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.
Palo Alto
PAN-SA-2024-0014 Informational Bulletin: Impact of OSS CVEs in Cortex XDR Agent
vendor_paloalto·2024-11-07·CVSS 6.8
CVE-2014-0195 [MEDIUM] PAN-SA-2024-0014 Informational Bulletin: Impact of OSS CVEs in Cortex XDR Agent
PAN-SA-2024-0014 Informational Bulletin: Impact of OSS CVEs in Cortex XDR Agent
The Palo Alto Networks Product Security Assurance team has evaluated the following open source software (OSS) CVEs as they relate to Cortex XDR Agent. While Cortex XDR Agent may include the
CVEs: CVE-2014-0195, CVE-2014-0224, CVE-2014-3509, CVE-2014-3512, CVE-2014-3513, CVE-2014-3567, CVE-2015-0209, CVE-2015-0292, CVE-2015-1789, CVE-2015-1791, CVE-2015-1793, CVE-2015-3194, CVE-2016-0705, CVE-2016-0797, CVE-2016-0798, CVE-2016-0799, CVE-2016-2105, CVE-2016-2106, CVE-2016-2108, CVE-2016-2109, CVE-2016-2176, CVE-2016-2177, CVE-2016-2179, CVE-2016-2180, CVE-2016-2181, CVE-2016-2182, CVE-2016-2183, CVE-2016-6302, CVE-2016-6303, CVE-2016-6304, CVE-2019-1551, CVE-2019-1552, CVE-2019-1559, CVE-2019-1563, CVE-2020-196
Ubuntu
Lua vulnerabilities
vendor_ubuntu·2024-07-29·CVSS 9.1
CVE-2022-33099 [CRITICAL] Lua vulnerabilities
Title: Lua vulnerabilities
Summary: Several security issues were fixed in Lua.
It was discovered that Lua did not properly generate code when "_ENV" is
constant. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary unstrusted lua code. (CVE-2022-28805)
It was discovered that Lua did not properly handle C stack overflows during
error handling. An attacker could possibly use this issue to cause a denial
of service. (CVE-2022-33099)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
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.
vendor_msrc·2022-07-12·CVSS 7.5
CVE-2022-33099 [HIGH] CWE-787 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Customer Action Req
Red Hat
lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling
vendor_redhat·2022-07-01·CVSS 7.5
CVE-2022-33099 [HIGH] CWE-787 lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling
lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling
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.
A vulnerability was found in Lua. During error handling, the luaG_errormsg() component uses slots from EXTRA_STACK. Some errors can recur such as a string overflow while creating an error message in 'luaG_runerror', or a C-stack overflow before calling the message handler, causing a crash that leads to a denial of service.
Package: lua (Red Hat Enterprise Linux 6) - Not affected
Package: lua (Red Hat Enterprise Linux 7) - Not affected
Package: libreoffice:flatpak/lua (Red Hat Enterprise Linux 8) - Not affected
Package: lua (Red Hat Enterprise Linux 8) - No
Debian
CVE-2022-33099: lua5.1 - An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-...
vendor_debian·2022·CVSS 7.5
CVE-2022-33099 [HIGH] CVE-2022-33099: lua5.1 - An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670dafhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/https://lua-users.org/lists/lua-l/2022-05/msg00035.htmlhttps://lua-users.org/lists/lua-l/2022-05/msg00042.htmlhttps://lua-users.org/lists/lua-l/2022-05/msg00073.htmlhttps://www.lua.org/bugs.html#Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error:~:text=Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20errorhttps://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670dafhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/https://lua-users.org/lists/lua-l/2022-05/msg00035.htmlhttps://lua-users.org/lists/lua-l/2022-05/msg00042.htmlhttps://lua-users.org/lists/lua-l/2022-05/msg00073.htmlhttps://www.lua.org/bugs.html#Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error:~:text=Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error
2022-07-01
Published