CVE-2021-44964
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows...
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
CVE-2021-44964- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
CVE List No score
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
CVE-2021-44964- Updated
- 2026-11-02
EUVDEUVD-2021-31762 No score
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
EUVD-2021-31762- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rvj2-9p3c-wmwh
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows...
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
GHSA-rvj2-9p3c-wmwh- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSVAZL-40979
6.3
CVE-2021-44964 affecting package ntopng for versions less than 5.2.1-6
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
AZL-40979- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-05
OSVAZL-60034
6.3
CVE-2021-44964 affecting package ntopng for versions less than 5.2.1-3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
AZL-60034- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
Show 12 moreShow less
OSVAZL-60112
6.3
CVE-2021-44964 affecting package memcached for versions less than 1.6.22-2
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
AZL-60112- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVAZL-9048
6.3
CVE-2021-44964 affecting package lua for versions less than 5.4.4-1
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
AZL-9048- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
CVE-2021-44964- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-44964
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
DEBIAN-CVE-2021-44964- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-558
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
JLSEC-2026-558- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVOESA-2022-1860
6.3
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):
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.(CVE-2021-44964)
- Record
OESA-2022-1860- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2023:0957
5.5
Red Hat Security Advisory: lua security update
- Record
RHSA-2023:0957- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRHSA-2023:1211
7.0
Red Hat Security Advisory: lua security update
- Record
RHSA-2023:1211- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRLSA-2023:0957
7.0
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: use after free allows Sandbox Escape (CVE-2021-44964)
-
lua: stack overflow in lua_resume of ldo.c allows a DoS via a crafted script file (CVE-2021-43519)
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-2023:0957- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-44964
6.3
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
UBUNTU-CVE-2021-44964- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H - Updated
- 2026-11-06
OSVALSA-2023:0957 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: use after free allows Sandbox Escape (CVE-2021-44964)
- lua: stack overflow in lua_resume of ldo.c allows a DoS via a crafted script file (CVE-2021-43519)
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-2023:0957- Updated
- 2026-11-02
OSVBIT-lua-2021-44964 No score
Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
- Record
BIT-lua-2021-44964- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
luaAlmaLinux:9 From an advisory covering 2 CVEs |
before 5.4.4-2.el9_1 | 5.4.4-2.el9_1 |
lua-develAlmaLinux:9 From an advisory covering 2 CVEs |
before 5.4.4-2.el9_1 | 5.4.4-2.el9_1 |
lua-libsAlmaLinux:9 From an advisory covering 2 CVEs |
before 5.4.4-2.el9_1 | 5.4.4-2.el9_1 |
ntopngAzure Linux:3 |
before 5.2.1-6 | 5.2.1-6 |
ntopngAzure Linux:2 |
before 5.2.1-3 | 5.2.1-3 |
memcachedAzure Linux:2 |
before 1.6.22-2 | 1.6.22-2 |
luaAzure Linux:2 |
before 5.4.4-1 | 5.4.4-1 |
luaBitnami |
5.4.0 up to 5.4.4 | 5.4.4 |
lua5.4Debian:12 |
before 5.4.4-1 | 5.4.4-1 |
lua5.4Debian:13 |
before 5.4.4-1 | 5.4.4-1 |
Show 35 moreShow less
| Package | Affected | Fixed |
|---|---|---|
lua5.4Debian:14 |
before 5.4.4-1 | 5.4.4-1 |
Lua_jllJulia |
5.4.3+0 up to 5.4.4+0 | 5.4.4+0 |
luaopenEuler:22.03-LTS |
before 5.4.3-8.oe2203 | 5.4.3-8.oe2203 |
luaRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debugsourceRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
luaRed Hat:enterprise_linux:9::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debuginfoRed Hat:enterprise_linux:9::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debugsourceRed Hat:enterprise_linux:9::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-libsRed Hat:enterprise_linux:9::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
luaRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-debugsourceRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-develRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua-libs-debuginfoRed Hat:enterprise_linux:9::crb From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
luaRed Hat:rhel_eus:9.0::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debuginfoRed Hat:rhel_eus:9.0::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debugsourceRed Hat:rhel_eus:9.0::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-libs-debuginfoRed Hat:rhel_eus:9.0::appstream From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
luaRed Hat:rhel_eus:9.0::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debuginfoRed Hat:rhel_eus:9.0::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debugsourceRed Hat:rhel_eus:9.0::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-libsRed Hat:rhel_eus:9.0::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-libs-debuginfoRed Hat:rhel_eus:9.0::baseos From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
luaRed Hat:rhel_eus:9.0::crb From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debuginfoRed Hat:rhel_eus:9.0::crb From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-debugsourceRed Hat:rhel_eus:9.0::crb From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-develRed Hat:rhel_eus:9.0::crb From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
lua-libs-debuginfoRed Hat:rhel_eus:9.0::crb From an advisory covering 2 CVEs |
before 0:5.4.4-1.el9_0.1 | 0:5.4.4-1.el9_0.1 |
luaRocky Linux:9 From an advisory covering 2 CVEs |
before 0:5.4.4-2.el9_1 | 0:5.4.4-2.el9_1 |
lua5.2Ubuntu:14.04:LTS |
All versions, plus listed versions 5.2.2-15.2.2-25.2.2-35.2.3-1 |
None known |
lua5.2Ubuntu:16.04:LTS |
All versions, plus listed versions 5.2.4-15.2.4-1ubuntu1 |
None known |
lua5.3Ubuntu:16.04:LTS |
All versions, plus listed versions 5.3.1-15.3.1-1ubuntu25.3.1-1ubuntu2.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| 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-2021-44964 is a medium vulnerability (CVSS 6.3) in Lua, published March 14, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.98%, the 62nd percentile. Fixed in ntopng 5.2.1-6.
References
lua-users.org/lists/lua-l/2021-11/msg00186.html
lua-users.org/lists/lua-l/2021-12/msg00007.html
lua-users.org/lists/lua-l/2021-12/msg00015.html
lua-users.org/lists/lua-l/2021-12/msg00030.html
github.com/Lua-Project/lua-5.4.4-sandbox-escape-with-new-vulnerability
nvd.nist.gov/vuln/detail/CVE-2021-44964
Show 21 moreShow less
github.com/advisories/GHSA-rvj2-9p3c-wmwh
access.redhat.com/errata/RHSA-2023:0957
access.redhat.com/security/cve/CVE-2021-43519
access.redhat.com/security/cve/CVE-2021-44964
bugzilla.redhat.com/2047672
bugzilla.redhat.com/2064772
errata.almalinux.org/9/ALSA-2023-0957.html
security-tracker.debian.org/tracker/CVE-2021-44964
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1860
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2047672
bugzilla.redhat.com/show_bug.cgi?id=2064772
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_0957.json
cve.org/CVERecord?id=CVE-2021-43519
nvd.nist.gov/vuln/detail/CVE-2021-43519
cve.org/CVERecord?id=CVE-2021-44964
lua.org/bugs.html
access.redhat.com/errata/RHSA-2023:1211
security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1211.json
errata.rockylinux.org/RLSA-2023:0957
ubuntu.com/security/CVE-2021-44964