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

EcosystemPackageFixed inAdvisory
Debian:12lua5.45.4.4-1DEBIAN-CVE-2021-45985
Debian:13lua5.45.4.4-1DEBIAN-CVE-2021-45985
Debian:14lua5.45.4.4-1DEBIAN-CVE-2021-45985
Ubuntu:22.04:LTSdarktableno fix listedUBUNTU-CVE-2021-45985
Ubuntu:24.04:LTSdarktableno fix listedUBUNTU-CVE-2021-45985
Ubuntu:25.10darktableno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.04:LTSdarktableno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.10darktableno fix listedUBUNTU-CVE-2021-45985
Ubuntu:22.04:LTStupno fix listedUBUNTU-CVE-2021-45985
Ubuntu:24.04:LTStupno fix listedUBUNTU-CVE-2021-45985
Ubuntu:25.10tupno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.04:LTStupno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.10tupno fix listedUBUNTU-CVE-2021-45985
Ubuntu:22.04:LTSvifmno fix listedUBUNTU-CVE-2021-45985
Ubuntu:24.04:LTSvifmno fix listedUBUNTU-CVE-2021-45985
Ubuntu:25.10vifmno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.04:LTSvifmno fix listedUBUNTU-CVE-2021-45985
Ubuntu:26.10vifmno fix listedUBUNTU-CVE-2021-45985

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References