CVE-2021-45985

Source
https://cve.org/CVERecord?id=CVE-2021-45985
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45985.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-45985
Aliases
Downstream
AZL (4)
DEBIAN (1)
JLSEC (1)
OESA (2)
UBUNTU (1)
Published
2023-04-10T09:15:07Z
Modified
2026-07-09T01:24:53Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/lua/lua

Affected ranges

Type
GIT
Repo
https://github.com/lua/lua
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:lua:lua:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "5.4.0"
        },
        {
            "fixed":  "5.4.4"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v5.*
v5.4.0
v5.4.1
v5.4.2
v5.4.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-45985.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "33833490466441759291322153683438719705",
                "84369104082086107190645463707502174029",
                "295511310105421369746384700970995315737",
                "12203473177769128110561359607199773707",
                "315007898064505767868322756796827846696",
                "278707840460729215257930947771055151307",
                "289853073820757707898851752461450092833",
                "79699182784658544092265369729132165017"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-45985-607c555b",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5",
        "target":  {
            "file":  "ldo.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "74565152130787818120172892330726743781",
            "length":  1036
        },
        "id":  "CVE-2021-45985-fe306226",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/lua/lua/commit/cf613cdc6fa367257fc61c256f63d917350858b5",
        "target":  {
            "file":  "ldo.c",
            "function":  "luaD_pretailcall"
        }
    }
]
vanir_signatures_modified
"2026-07-09T01:24:53Z"