CVE-2022-33099
An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2022-33099- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2022-33099- Updated
- 2026-11-02
EUVDEUVD-2022-36155 No score
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.
- Record
EUVD-2022-36155- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-39jx-jr53-979c
7.5
An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow...
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.
- Record
GHSA-39jx-jr53-979c- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVAZL-10045
7.5
CVE-2022-33099 affecting package lua for versions less than 5.4.3-4
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.
- Record
AZL-10045- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVAZL-35032
7.5
CVE-2022-33099 affecting package nmap for versions less than 7.95-1
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.
- Record
AZL-35032- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 14 moreShow less
OSVAZL-41192
7.5
CVE-2022-33099 affecting package ntopng for versions less than 5.2.1-4
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.
- Record
AZL-41192- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
OSVBELL-CVE-2022-33099
7.5
CVE-2022-33099 does not affect BellSoft software
- Record
BELL-CVE-2022-33099- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-33099
7.5
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.
- Record
DEBIAN-CVE-2022-33099- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSVJLSEC-2026-561
7.5
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.
- Record
JLSEC-2026-561- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVOESA-2022-1764
7.5
lua security update
Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
Security Fix(es):
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.(CVE-2022-33099)
- Record
OESA-2022-1764- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2022:7329
6.5
Red Hat Security Advisory: lua security update
- Record
RHSA-2022:7329- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2022:7329
6.5
Moderate: lua security update
The lua packages provide support for Lua, a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language.
Security Fix(es):
- lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling (CVE-2022-33099)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2022:7329- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-33099
7.5
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.
- Record
UBUNTU-CVE-2022-33099- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2022:7329 No score
Moderate: lua security update
The lua packages provide support for Lua, a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language.
Security Fix(es):
- lua: heap buffer overflow in luaG_errormsg() in ldebug.c due to uncontrolled recursion in error handling (CVE-2022-33099)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2022:7329- Updated
- 2026-11-02
OSVBIT-lua-2022-33099 No score
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.
- Record
BIT-lua-2022-33099- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2022-33099- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12167-1 No score
liblua5_4-5-32bit-5.4.4-5.1 on GA media
These are all security issues fixed in the liblua5_4-5-32bit-5.4.4-5.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12167-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15401-1 No score
liblua5_5-5-5.5.0~beta1-1.1 on GA media
These are all security issues fixed in the liblua5_5-5-5.5.0~beta1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15401-1- Updated
- 2026-11-02
OSVUSN-6916-1 No score
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)
- Record
USN-6916-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
luaAlmaLinux:9 |
before 5.4.2-4.el9_0.3 | 5.4.2-4.el9_0.3 |
lua-develAlmaLinux:9 |
before 5.4.2-4.el9_0.3 | 5.4.2-4.el9_0.3 |
lua-libsAlmaLinux:9 |
before 5.4.2-4.el9_0.3 | 5.4.2-4.el9_0.3 |
luaAzure Linux:2 |
before 5.4.3-4 | 5.4.3-4 |
nmapAzure Linux:3 |
before 7.95-1 | 7.95-1 |
ntopngAzure Linux:3 |
before 5.2.1-4 | 5.2.1-4 |
luaBitnami |
5.4.2 up to 5.4.5 | 5.4.5 |
lua5.4Debian:12 |
before 5.4.4-3 | 5.4.4-3 |
lua5.4Debian:13 |
before 5.4.4-3 | 5.4.4-3 |
lua5.4Debian:14 |
before 5.4.4-3 | 5.4.4-3 |
Show 20 moreShow less
| Package | Affected | Fixed |
|---|---|---|
Lua_jllJulia |
5.4.3+0 up to 5.4.6+0 | 5.4.6+0 |
luaopenEuler:22.03-LTS |
before 5.4.3-7.oe2203 | 5.4.3-7.oe2203 |
luaRed Hat:enterprise_linux:9::appstream |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debugsourceRed Hat:enterprise_linux:9::appstream |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
luaRed Hat:enterprise_linux:9::baseos |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debugsourceRed Hat:enterprise_linux:9::baseos |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-libsRed Hat:enterprise_linux:9::baseos |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
luaRed Hat:enterprise_linux:9::crb |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debuginfoRed Hat:enterprise_linux:9::crb |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-debugsourceRed Hat:enterprise_linux:9::crb |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-develRed Hat:enterprise_linux:9::crb |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::crb |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
luaRocky Linux:9 |
before 0:5.4.2-4.el9_0.3 | 0:5.4.2-4.el9_0.3 |
lua5.4Ubuntu:Pro:22.04:LTS |
before 5.4.4-1ubuntu0.1~esm1, plus listed versions 5.4.2-25.4.3-15.4.4-1 |
5.4.4-1ubuntu0.1~esm1 |
lua5.4Ubuntu:Pro:22.04:LTS From an advisory covering 2 CVEs |
before 5.4.4-1ubuntu0.1~esm1, plus listed versions 5.4.2-25.4.3-15.4.4-1 |
5.4.4-1ubuntu0.1~esm1 |
lua55openSUSE:Tumbleweed From an advisory covering 9 CVEs |
before 5.5.0~beta1-1.1 | 5.5.0~beta1-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-33099 is a high vulnerability (CVSS 7.5) in Lua, published July 1, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.84%, the 86th percentile. Fixed in lua 5.4.2-4.el9_0.3.
References
github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf
lua-users.org/lists/lua-l/2022-05/msg00035.html
lua-users.org/lists/lua-l/2022-05/msg00042.html
lua-users.org/lists/lua-l/2022-05/msg00073.html
lua.org/bugs.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R
Show 30 moreShow less
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA
nvd.nist.gov/vuln/detail/CVE-2022-33099
lists.fedoraproject.org/archives/list/[email protected]/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R
lists.fedoraproject.org/archives/list/[email protected]/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA
github.com/advisories/GHSA-39jx-jr53-979c
access.redhat.com/errata/RHSA-2022:7329
access.redhat.com/security/cve/CVE-2022-33099
bugzilla.redhat.com/2104427
errata.almalinux.org/9/ALSA-2022-7329.html
docs.bell-sw.com/security/cves/CVE-2022-33099
github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33099.json
security-tracker.debian.org/tracker/CVE-2022-33099
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1764
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2104427
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7329.json
cve.org/CVERecord?id=CVE-2022-33099
errata.rockylinux.org/RLSA-2022:7329
ubuntu.com/security/CVE-2022-33099
ubuntu.com/security/notices/USN-6916-1
ubuntu.com/security/CVE-2022-28805
suse.com/security/cve/CVE-2022-33099
suse.com/security/cve/CVE-2020-15888
suse.com/security/cve/CVE-2020-15945
suse.com/security/cve/CVE-2020-24342
suse.com/security/cve/CVE-2020-24369
suse.com/security/cve/CVE-2020-24370
suse.com/security/cve/CVE-2020-24371
suse.com/security/cve/CVE-2021-43519
suse.com/security/cve/CVE-2021-44647