CVE-2020-15889

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-15889
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-15889.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-15889
Aliases
Downstream
Published
2020-07-21T22:15:12Z
Modified
2025-10-15T12:05:40.942670Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an insufficient number of list members.

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

[
    {
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312",
        "signature_version": "v1",
        "target": {
            "file": "lgc.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "33806952625595217983272738707404348225",
                "54845178931446360748967184937984859969",
                "12660585324071077448513951454168378358",
                "178375425586030612822274894787116549398",
                "69646801792118292822006701814980344525",
                "198212268633878255442099821443487555623",
                "281006230464054444442865744331568088035"
            ]
        },
        "id": "CVE-2020-15889-ce83878b"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312",
        "signature_version": "v1",
        "target": {
            "function": "youngcollection",
            "file": "lgc.c"
        },
        "digest": {
            "function_hash": "176391760155847415929674594339149499199",
            "length": 823.0
        },
        "id": "CVE-2020-15889-de75bad6"
    }
]