Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-15889

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-15889
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:34 UTC · Revision 1

Source evidence

CVE-2020-15889

core-osv · Original source

Published 21 Jul 2020, 22:15 UTC

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.

osv:CVE-2020-15889
Complete source record
{
  "id": "ef101cdb60b86937588de9c946545f269ea703c217185b0e0f9327ffa262abb6",
  "url": "https://osv.dev/vulnerability/CVE-2020-15889",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-15889",
    "summary": "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.",
    "evidence": "osv:CVE-2020-15889",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-15889",
      "aliases": [
        "BIT-lua-2020-15889",
        "CVE-2020-15889"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lua/lua",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c33b1728aeb7dfeec4013562660e07d32697aa6b"
                },
                {
                  "last_affected": "c33b1728aeb7dfeec4013562660e07d32697aa6b"
                },
                {
                  "fixed": "127e7a6c8942b362aa3c6627f44d660a4fb75312"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lua:lua:5.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.4.0"
                      },
                      {
                        "last_affected": "5.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "127e7a6c8942b362aa3c6627f44d660a4fb75312"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.4.0",
            "v5.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-15889.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-15889-ce83878b",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "33806952625595217983272738707404348225",
                    "54845178931446360748967184937984859969",
                    "12660585324071077448513951454168378358",
                    "178375425586030612822274894787116549398",
                    "69646801792118292822006701814980344525",
                    "198212268633878255442099821443487555623",
                    "281006230464054444442865744331568088035"
                  ]
                },
                "source": "https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312",
                "target": {
                  "file": "lgc.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-15889-de75bad6",
                "digest": {
                  "length": 823,
                  "function_hash": "176391760155847415929674594339149499199"
                },
                "source": "https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312",
                "target": {
                  "file": "lgc.c",
                  "function": "youngcollection"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:52:02Z"
          }
        }
      ],
      "modified": "2026-10-20T13:52:02.441020015Z",
      "provider": "osv",
      "references": [
        "https://github.com/lua/lua/commit/127e7a6c8942b362aa3c6627f44d660a4fb75312"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-15889",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388305,
  "published_at": "2020-07-21T22:15:12.15+00:00"
}