CVE-2021-45985 Memory corruption in n/a
An erroneous finalizer during a tail call in Lua causes a heap-based buffer over-read, potentially leading to crashes or information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45985?
CVE-2021-45985 is a high-severity memory corruption vulnerability in n/a, published on 10 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
Weakness: CWE-787
Which versions are affected by CVE-2021-45985?
1 open source package ship an affected version, including lua. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lua Bitnami | From 5.4.0 | 5.4.4 |
Products include Lua Lua.
How do I fix CVE-2021-45985?
Upgrade lua to 5.4.4 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-45985 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-45985 exists.
Other vulnerabilities in n/a
Sources
Also known as AZL-26047, AZL-26155, AZL-26158, AZL-35066, BIT-lua-2021-45985, DEBIAN-CVE-2021-45985 and 5 more.