Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. lua
  4. ›
  5. CVE-2021-45985

CVE-2021-45985: Out-of-bounds Write

April 10, 2023 (updated April 14, 2023)

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

References

  • lua-users.org/lists/lua-l/2021-12/msg00019.html
  • github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5
  • nvd.nist.gov/vuln/detail/CVE-2021-45985
  • www.lua.org/bugs.html

Code Behaviors & Features

Detect and mitigate CVE-2021-45985 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

Version 5.4.3

Fixed versions

  • 5.4.4

Solution

Upgrade to version 5.4.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

conan/lua/CVE-2021-45985.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.