Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3…
Priority LOW 30CWE-416Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-416 and the CVSS impact.
Summary
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.
Why it matters now
EPSS 0.00985 62nd percentileScored 2026-11-07
Public exploit Yes 3 exploit referencesTagged by NVD
Fix Fixed Red Hat: 2 advisories
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2023:1211 Released 2023-03-14 · Red Hat rating Moderatelua security update
- Red Hat CodeReady Linux Builder EUS (v.9.0) lua-5.4.4-1.el9_0.1, lua-devel-5.4.4-1.el9_0.1
- Red Hat Enterprise Linux AppStream EUS (v.9.0) lua-5.4.4-1.el9_0.1
- Red Hat Enterprise Linux BaseOS EUS (v.9.0) lua-5.4.4-1.el9_0.1, lua-libs-5.4.4-1.el9_0.1
- RHSA-2023:0957 Released 2023-02-28 · Red Hat rating Moderatelua security update
- Red Hat CodeReady Linux Builder (v. 9) lua-5.4.4-2.el9_1, lua-devel-5.4.4-2.el9_1
- Red Hat Enterprise Linux AppStream (v. 9) lua-5.4.4-2.el9_1
- Red Hat Enterprise Linux BaseOS (v. 9) lua-5.4.4-2.el9_1, lua-libs-5.4.4-2.el9_1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2023:0957 |
| Red Hat CodeReady Linux Builder EUS (v.9.0) | Fixed | RHSA-2023:1211 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2023:0957 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2023:1211 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2023:0957 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.0) | Fixed | RHSA-2023:1211 |
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat JBoss Core Services
Timeline
- 2026-10-02 Threatist record created from CVE-2021-44964
- 2026-10-03 Alias added: GHSA-rvj2-9p3c-wmwh
References
Exploit 3
More Lua vulnerabilities
- TI-2021-20978 In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read. CVSS 3.1HIGH 7.5
- TI-2019-04752 Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. CVSS 3.1HIGH 7.5
- TI-2020-12507 Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c… CVSS 3.1CRITICAL 9.8
- TI-2022-11427 singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a… CVSS 3.1CRITICAL 9.1
- TI-2020-12506 Lua through 5.4.0 mishandles the interaction between stack resizes and garbage… CVSS 3.1HIGH 8.8
- TI-2022-14562 An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer… CVSS 3.1HIGH 7.5
Sources
- CVE-2021-44964 · CVE Program
- CVE-2021-44964 · NVD
- FIRST EPSS
- GHSA-rvj2-9p3c-wmwh · GitHub Advisory Database · CC BY 4.0
- CVE-2021-44964 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences