Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-6706

Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might be achieved by an attacker who is able to trigger a debug.upvaluejoin call in which the arguments have certain relationships.

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

Source evidence

CVE-2019-6706

core-osv · Original source

Published 23 Jan 2019, 19:29 UTC

Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might be achieved by an attacker who is able to trigger a debug.upvaluejoin call in which the arguments have certain relationships.

osv:CVE-2019-6706
Complete source record
{
  "id": "9ec2498b7c35d0192dc74cd6f52d725f259b306961ec7f584facfd5ca70bf928",
  "url": "https://osv.dev/vulnerability/CVE-2019-6706",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-6706",
    "summary": "Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might be achieved by an attacker who is able to trigger a debug.upvaluejoin call in which the arguments have certain relationships.",
    "evidence": "osv:CVE-2019-6706",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-6706",
      "aliases": [
        "CVE-2019-6706"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/lua/lua",
              "type": "GIT",
              "events": [
                {
                  "introduced": "063d4e4543088e7a21965bda8ee5a0f952a9029e"
                },
                {
                  "last_affected": "063d4e4543088e7a21965bda8ee5a0f952a9029e"
                },
                {
                  "fixed": "89aee84cbc9224f638f3b7951b306d2ee8ecb71e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:lua:lua:5.3.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.3.5"
                      },
                      {
                        "last_affected": "5.3.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "89aee84cbc9224f638f3b7951b306d2ee8ecb71e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.3.5",
            "v5.3.5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-6706.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-6706-00032def",
                "digest": {
                  "length": 408,
                  "function_hash": "45231132265163223636532311818292060392"
                },
                "source": "https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e",
                "target": {
                  "file": "lapi.c",
                  "function": "getupvalref"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-6706-264b1e53",
                "digest": {
                  "length": 468,
                  "function_hash": "168654682806415888564868502854858233475"
                },
                "source": "https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e",
                "target": {
                  "file": "lapi.c",
                  "function": "lua_upvalueid"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-6706-ad2906b9",
                "digest": {
                  "length": 392,
                  "function_hash": "336886739732523367635662810366732805781"
                },
                "source": "https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e",
                "target": {
                  "file": "lapi.c",
                  "function": "lua_upvaluejoin"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-6706-e7916afb",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "114280754343182667492310544413047257523",
                    "135797660772714151558304634952356559189",
                    "324426448145863171687706490342891370242",
                    "158464887736040735811625781411603539517",
                    "109284068507191940525491597714252165763",
                    "17353900652863108361291584574332551664",
                    "73243341667893678318317837601477420919",
                    "184943886777344493192408412618803260479",
                    "92936929984927184471054474271540256660",
                    "315317082330350668532734840438847734449",
                    "232247388784538711332203219499193690964",
                    "238016185841859018970600644226169544163",
                    "212682399206584147756393191489144751679",
                    "265234325060766264020411529438170302368",
                    "316472907546906173177633520659052112636",
                    "211225411100249201500195271735977703457",
                    "105626001136622936431389132883094094572",
                    "215722041084154120534485317323045511353",
                    "69590894200313878133321429160581940638",
                    "104367335793266688094676634691058216743"
                  ]
                },
                "source": "https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e",
                "target": {
                  "file": "lapi.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:57:28Z"
          }
        }
      ],
      "modified": "2026-10-20T13:57:28.761978225Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html",
        "https://access.redhat.com/security/cve/cve-2019-6706",
        "https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e",
        "https://github.com/Lua-Project/cve-analysis/blob/a43c9ccd00274b31fa2f24c6c8f20ce36655682d/CVE-2019-6706.pdf"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-6706",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388455,
  "published_at": "2019-01-23T19:29:00.447+00:00"
}