CVE-2021-44964
CVE-2021-44964 is a medium-severity vulnerability in Lua with a CVSS 3.x base score of 6.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-416.
Key facts
- Severity: Medium (CVSS 3.x base score 6.3)
- CVSS v2: 4.3
- EPSS exploit prediction: 1% (58th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-416
- Affected product: Lua
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2021-44964?
- 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.
- How severe is CVE-2021-44964?
- CVE-2021-44964 has a CVSS 3.x base score of 6.3, rated medium severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2021-44964 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (58th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-44964?
- CVE-2021-44964 affects Lua. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-44964?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-44964 published?
- CVE-2021-44964 was published on 2022-03-14 and last updated on 2026-06-17.
References
- http://lua-users.org/lists/lua-l/2021-11/msg00186.html
- http://lua-users.org/lists/lua-l/2021-12/msg00007.html
- http://lua-users.org/lists/lua-l/2021-12/msg00015.html
- http://lua-users.org/lists/lua-l/2021-12/msg00030.html
- https://github.com/Lua-Project/lua-5.4.4-sandbox-escape-with-new-vulnerability
Affected products (1)
- cpe:2.3:a:lua:lua:*:*:*:*:*:*:*:*
More vulnerabilities in Lua
- CVE-2020-15889 — Critical (CVSS 9.8): Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an…
- CVE-2022-28805 — Critical (CVSS 9.1): singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call,…
- CVE-2020-15888 — High (CVSS 8.8): Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based…
- CVE-2020-24342 — High (CVSS 7.8): Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls…
- CVE-2021-45985 — High (CVSS 7.5): In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
- CVE-2022-33099 — High (CVSS 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…
Other CWE-416 (Use After Free) vulnerabilities
- CVE-2026-13782 — Critical (CVSS 10.0): Use after free in Browser in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the…
- CVE-2026-4725 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Graphics: Canvas2D component. This vulnerability was fixed in Firefox 149…
- CVE-2026-4688 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Disability Access APIs component. This vulnerability was fixed in Firefox…
- CVE-2025-24085 — Critical (CVSS 10.0): A use after free issue was addressed with improved memory management. This issue is fixed in iOS 18.3 and iPadOS 18.3,…
- CVE-2024-43102 — Critical (CVSS 10.0): Concurrent removals of certain anonymous shared memory mappings by using the UMTX_SHM_DESTROY sub-request of…
- CVE-2021-32495 — Critical (CVSS 10.0): Radare2 has a use-after-free vulnerability in pyc parser's get_none_object function. Attacker can read freed memory…