Vulnerability · Published Apr 10, 2023 · Assigned by mitre
CVE-2021-45985
High 7.5
In plain English
A high-severity out-of-bounds write in the lua5.4 package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.4%top 27.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | lua5.4 | 5.4.4-1 | DEBIAN-CVE-2021-45985 |
| Debian:13 | lua5.4 | 5.4.4-1 | DEBIAN-CVE-2021-45985 |
| Debian:14 | lua5.4 | 5.4.4-1 | DEBIAN-CVE-2021-45985 |
| Ubuntu:22.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:24.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:25.10 | darktable | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.04:LTS | darktable | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.10 | darktable | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:22.04:LTS | tup | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:24.04:LTS | tup | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:25.10 | tup | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.04:LTS | tup | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.10 | tup | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:22.04:LTS | vifm | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:24.04:LTS | vifm | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:25.10 | vifm | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.04:LTS | vifm | no fix listed | UBUNTU-CVE-2021-45985 |
| Ubuntu:26.10 | vifm | no fix listed | UBUNTU-CVE-2021-45985 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H