CVEfocus › CVE database › CVE-2021-45985

CVE-2021-45985

CVSS 7.5 HighEPSS 1.4% (higher than 73% of CVEs)Published 2023-04-10Updated 2025-02-12Assigner: mitre

In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.

CWE-787

What to do

Fixed builds are available from Debian, Microsoft: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

18Fixed
3Fix pending
9Under investigation
24Will not fix
35Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10darktableFix pendingUBUNTU-CVE-2021-45985
Ubuntu 26.10tupFix pendingUBUNTU-CVE-2021-45985
Ubuntu 26.10vifmFix pendingUBUNTU-CVE-2021-45985
Ubuntu 26.04darktableUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 26.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 26.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 26.04memcachedNot affected
vulnerable_code_not_present
Ubuntu 26.04tupUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 26.04vifmUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 25.10darktableWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 25.10lua5.1Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.2Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.3Not affected
vulnerable_code_not_present
Ubuntu 25.10lua5.4Not affected
vulnerable_code_not_present
Ubuntu 25.10memcachedNot affected
vulnerable_code_not_present
Ubuntu 25.10tupWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 25.10vifmWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 24.04darktableUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 24.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 24.04lua5.4Not affected
vulnerable_code_not_present
Ubuntu 24.04memcachedNot affected
vulnerable_code_not_present
Ubuntu 24.04tupUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 24.04vifmUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 22.04darktableUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 22.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 22.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 22.04memcachedNot affected
vulnerable_code_not_present
Ubuntu 22.04tupUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 22.04vifmUnder investigationUBUNTU-CVE-2021-45985
Ubuntu 20.04darktableWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 20.04lua5.2Not affected
vulnerable_code_not_present
Ubuntu 20.04lua5.3Not affected
vulnerable_code_not_present
Ubuntu 20.04lua50Not affected
vulnerable_code_not_present
Ubuntu 20.04memcachedNot affected
vulnerable_code_not_present
Ubuntu 20.04tupWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 20.04vifmWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 18.04darktableWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 18.04lua5.1Not affected
vulnerable_code_not_present
Ubuntu 18.04lua5.2Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 18.04lua5.3Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 18.04lua50Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 18.04vifmWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 16.04darktableWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 16.04lua5.1Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 16.04lua5.2Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 16.04lua5.3Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 16.04lua50Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 16.04memcachedWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 16.04vifmWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
UBUNTU-CVE-2021-45985
Ubuntu 14.04darktableWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 14.04lua5.1Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 14.04lua5.2Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 14.04lua50Will not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 14.04memcachedWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Ubuntu 14.04vifmWill not fix
memcached not built with experimental proxy code, so vendored lua isn't built vulnerable function introduced by commit 14c3aa12b
Debian 14lua5.4Fixed5.4.4-1DEBIAN-CVE-2021-45985
Debian 13lua5.4Fixed5.4.4-1DEBIAN-CVE-2021-45985
Debian 12lua5.4Fixed5.4.4-1DEBIAN-CVE-2021-45985
Red Hat Enterprise Linux 9luaNot affected
Red Hat Enterprise Linux 9lua-develNot affected
Red Hat Enterprise Linux 9lua-libsNot affected
Red Hat Enterprise Linux 8luaNot affected
Red Hat Enterprise Linux 8lua-develNot affected
Red Hat Enterprise Linux 8lua-libsNot affected
Red Hat Enterprise Linux 7luaNot affected
Red Hat Enterprise Linux 7lua-develNot affected
Red Hat Enterprise Linux 7lua-staticNot affected
Red Hat Enterprise Linux 6luaNot affected
Red Hat Enterprise Linux 6lua-develNot affected
Red Hat Enterprise Linux 6lua-staticNot affected
Windows Server 2025windowsFixed10.0.26100.2894 KB5050009MSRC-2023-Apr
Windows Server 2022windowsFixed10.0.20348.2762 KB5044281MSRC-2023-Apr
Windows Server, version 23H2windowsFixed10.0.25398.1189 KB5044288MSRC-2023-Apr
Windows 10 Version 21H2 (arm64)windowsFixed10.0.19044.5011 KB5044273MSRC-2023-Apr
Windows 10 Version 21H2 (x64)windowsFixed10.0.19044.5011 KB5044273MSRC-2023-Apr
Windows 10 Version 21H2 (x86)windowsFixed10.0.19044.5011 KB5044273MSRC-2023-Apr
Windows 10 Version 22H2 (arm64)windowsFixed10.0.19045.5011 KB5044273MSRC-2023-Apr
Windows 10 Version 22H2 (x64)windowsFixed10.0.19045.5011 KB5044273MSRC-2023-Apr
Windows 10 Version 22H2 (x86)windowsFixed10.0.19045.5011 KB5044273MSRC-2023-Apr
Windows 11 Version 22H2 (arm64)windowsFixed10.0.22621.4317 KB5044285MSRC-2023-Apr
Windows 11 Version 22H2 (x64)windowsFixed10.0.22621.4317 KB5044285MSRC-2023-Apr
Windows 11 Version 23H2 (arm64)windowsFixed10.0.22631.4317 KB5044285MSRC-2023-Apr
Windows 11 Version 23H2 (x64)windowsFixed10.0.22631.4317 KB5044285MSRC-2023-Apr
Windows 11 Version 24H2 (arm64)windowsFixed10.0.26100.2894 KB5050009MSRC-2023-Apr
Windows 11 Version 24H2 (x64)windowsFixed10.0.26100.2894 KB5050009MSRC-2023-Apr

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.