CVE-2020-24342

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-24342
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-24342.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-24342
Aliases
Downstream
Related
Published
2020-08-13T19:15:13Z
Modified
2025-09-19T12:11:20.111149Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Lua through 5.4.0 allows a stack redzone cross in luaOpushvfstring because a protection mechanism wrongly calls luaDcallnoyield twice in a row.

References

Affected packages

Git / github.com/lua/lua

Affected ranges

Type
GIT
Repo
https://github.com/lua/lua
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v1.*

v1.2

v2.*

v2.1
v2.2
v2.3-beta
v2.4
v2.4-beta
v2.5
v2.5-beta
v2.5.1

v3.*

v3.0
v3.0-alpha
v3.1
v3.1-alpha
v3.2
v3.2-beta

v4.*

v4.0
v4.0-alpha
v4.0-beta
v4.1-alpha

v5.*

v5.0
v5.0-alpha
v5.0-beta
v5.1
v5.1-alpha
v5.1-beta
v5.1.1
v5.2-alpha
v5.2-beta
v5.2.0
v5.2.1
v5.2.2
v5.3-alpha
v5.3-beta
v5.3.0
v5.3.1
v5.3.2
v5.3.3
v5.3.4
v5.4-alpha
v5.4-beta
v5.4-w2
v5.4.0

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2020-24342-46e61d2d",
            "signature_type": "Function",
            "digest": {
                "function_hash": "19393622418567517198781995424538435971",
                "length": 203.0
            },
            "target": {
                "file": "ldo.c",
                "function": "luaD_callnoyield"
            },
            "source": "https://github.com/lua/lua/commit/34affe7a63fc5d842580a9f23616d057e17dfe27",
            "signature_version": "v1",
            "deprecated": false
        },
        {
            "id": "CVE-2020-24342-e3b3e09e",
            "signature_type": "Line",
            "digest": {
                "line_hashes": [
                    "307434724169721203115088959011068448315",
                    "142710705972916715821753310510346050538",
                    "132059686558750829782112284199427550874",
                    "289888402931218646482748640243965616128",
                    "244127718289203141723121943598927242891",
                    "17269890457240028859642241902384334321",
                    "54095854288253291227407020601160490895"
                ],
                "threshold": 0.9
            },
            "target": {
                "file": "ldo.c"
            },
            "source": "https://github.com/lua/lua/commit/34affe7a63fc5d842580a9f23616d057e17dfe27",
            "signature_version": "v1",
            "deprecated": false
        }
    ]
}