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
CVE-2021-44964 is a medium-severity flaw (CVSS 6.3) affecting lua. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.3 (Medium) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 1.0% (top 38%) |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2022-03-14 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-44964?
lua: upgrade to newer than 5.4.3. Exact commands for each OS are on this page.
Is CVE-2021-44964 being exploited?
CVE-2021-44964 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-44964 affect?
CVE-2021-44964 affects lua. Severity is medium (CVSS 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.
How urgent is CVE-2021-44964?
Priority 43/100. Public exploit reference
Related CVEs
- CVE-2022-33099 HIGH 7.5 UPGRADE MITIGATE An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursi
- CVE-2022-28805 CRITICAL 9.1 UPGRADE MITIGATE singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup
- CVE-2021-45985 HIGH 7.5 UPGRADE In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
- CVE-2021-44647 MEDIUM 5.5 DOWNGRADE MITIGATE Lua v5.4.3 and above are affected by SEGV by type confusion in funcnamefromcode function in ldebug.c which can