# CVE-2019-6706: Lua 5.3.5 has a use-after-free in luaupvaluejoin in lapi.c.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 17.4%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2019-01-23T00:00:00.000Z
- Modified: 2026-06-17T02:39:32.640Z
- Weaknesses: CWE-416
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lua lua: 5.3.5
- canonical ubuntu_linux: 16.04; 18.04; 18.10

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <http://packetstormsecurity.com/files/151335/Lua-5.3.5-Use-After-Free.html> (exploit, third-party-advisory, vdb-entry)
- <https://github.com/Lua-Project/cve-analysis/blob/a43c9ccd00274b31fa2f24c6c8f20ce36655682d/CVE-2019-6706.pdf> (exploit, third-party-advisory)
- <https://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e> (patch, third-party-advisory)
- <http://lua-users.org/lists/lua-l/2019-01/msg00039.html> (broken-link)
- <https://access.redhat.com/security/cve/cve-2019-6706> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html> (mailing-list)

## Sources

- CVE List: [CVE-2019-6706](https://www.cve.org/CVERecord?id=CVE-2019-6706), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2019-6706](https://nvd.nist.gov/vuln/detail/CVE-2019-6706), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-6706 · Whole record: https://cve.day/CVE-2019-6706.json · Rebuilt by cve.day 2026-11-25T22:57:43.667Z
