CVE-2019-6706
Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2019-6706- 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 - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-416
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-6706- Updated
- 2026-11-02
EUVDEUVD-2019-16264 No score
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.
- Record
EUVD-2019-16264- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-f6gj-vrmg-ccf7
7.5
Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a crash outcome might...
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.
- Record
GHSA-f6gj-vrmg-ccf7- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-416
- Updated
- 2026-11-02
OSVALPINE-CVE-2019-6706
7.5
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.
- Record
ALPINE-CVE-2019-6706- 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 - Updated
- 2026-11-02
OSVAZL-6669
7.5
CVE-2019-6706 affecting package lua for versions less than 5.3.5-11
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.
- Record
AZL-6669- 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 - Updated
- 2026-11-02
Show 11 moreShow less
OSVBELL-CVE-2019-6706
7.5
CVE-2019-6706 does not affect BellSoft software
- Record
BELL-CVE-2019-6706- 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 - Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2019-6706- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-6706
7.5
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.
- Record
DEBIAN-CVE-2019-6706- 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 - Updated
- 2026-11-02
OSVJLSEC-2026-553
7.5
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.
- Record
JLSEC-2026-553- 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 - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSVRHSA-2019:3706
7.5
Red Hat Security Advisory: lua security and bug fix update
- Record
RHSA-2019:3706- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVRLSA-2019:3706
7.5
Moderate: lua security and bug fix update
The lua packages provide support for Lua, a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language.
Security Fix(es):
- lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service (CVE-2019-6706)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.1 Release Notes linked from the References section.
- Record
RLSA-2019:3706- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-6706
7.5
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.
- Record
UBUNTU-CVE-2019-6706- 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 - CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2019:3706 No score
Moderate: lua security and bug fix update
The lua packages provide support for Lua, a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language.
Security Fix(es):
- lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service (CVE-2019-6706)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2019:3706- Updated
- 2026-11-02
OSVopenSUSE-SU-2019:0175-1 No score
Security update for lua53
This update for lua53 fixes the following issues:
Security issue fixed:
- CVE-2019-6706: Fixed a use-after-free bug in the lua_upvaluejoin function of lapi.c (bsc#1123043)
This update was imported from the SUSE:SLE-15:Update update project.
- Record
openSUSE-SU-2019:0175-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:0247-1 No score
Security update for lua53
This update for lua53 fixes the following issues:
Security issue fixed:
- CVE-2019-6706: Fixed a use-after-free bug in the lua_upvaluejoin function of lapi.c (bsc#1123043)
- Record
SUSE-SU-2019:0247-1- Updated
- 2026-11-02
OSVUSN-3941-1 No score
lua5.3 vulnerability
Fady Othman discovered that Lua incorrectly handled certain scripts. An attacker could possibly use this issue to cause a denial of service.
- Record
USN-3941-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lua5.3Alpine:v3.10 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.11 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.12 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.13 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.14 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.15 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.16 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.17 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.18 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.19 |
before 5.3.5-r2 | 5.3.5-r2 |
Show 47 moreShow less
| Package | Affected | Fixed |
|---|---|---|
lua5.3Alpine:v3.20 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.21 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.22 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.23 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.24 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.6 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.7 |
before 5.3.5-r0 | 5.3.5-r0 |
lua5.3Alpine:v3.8 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.3Alpine:v3.9 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.14 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.15 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.16 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.17 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.18 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.19 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.20 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.21 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.22 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.23 |
before 5.3.5-r2 | 5.3.5-r2 |
lua5.4Alpine:v3.24 |
before 5.3.5-r2 | 5.3.5-r2 |
luaAlmaLinux:8 |
before 5.3.4-11.el8 | 5.3.4-11.el8 |
lua-develAlmaLinux:8 |
before 5.3.4-11.el8 | 5.3.4-11.el8 |
luaAzure Linux:2 |
before 5.3.5-11 | 5.3.5-11 |
lua5.3Debian:12 |
before 5.3.6-1 | 5.3.6-1 |
lua5.3Debian:13 |
before 5.3.6-1 | 5.3.6-1 |
lua5.3Debian:14 |
before 5.3.6-1 | 5.3.6-1 |
lua5.3Debian:10 From an advisory covering 2 CVEs |
before 5.3.3-1.1+deb10u1, plus listed versions 5.3.3-1.1 |
5.3.3-1.1+deb10u1 |
Lua_jllJulia |
before 5.3.6+0 | 5.3.6+0 |
luaRed Hat:enterprise_linux:8::appstream |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-libs-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
luaRed Hat:enterprise_linux:8::baseos |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-libsRed Hat:enterprise_linux:8::baseos |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-libs-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
luaRed Hat:enterprise_linux:8::crb |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-debugsourceRed Hat:enterprise_linux:8::crb |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-develRed Hat:enterprise_linux:8::crb |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua-libs-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
luaRocky Linux:8 |
before 0:5.3.4-11.el8 | 0:5.3.4-11.el8 |
lua53SUSE:Linux Enterprise Module for Basesystem 15 |
before 5.3.4-3.3.2 | 5.3.4-3.3.2 |
lua5.3Ubuntu:16.04:LTS |
before 5.3.1-1ubuntu2.1, plus listed versions 5.3.1-15.3.1-1ubuntu2 |
5.3.1-1ubuntu2.1 |
lua5.3Ubuntu:18.04:LTS |
before 5.3.3-1ubuntu0.18.04.1, plus listed versions 5.3.3-1 |
5.3.3-1ubuntu0.18.04.1 |
lua53openSUSE:Leap 15.0 |
before 5.3.4-lp150.2.3.1 | 5.3.4-lp150.2.3.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | Lua 5.3.5 - 'debug.upvaluejoin' Use After Free | 2019-01-25 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-6706 is a high vulnerability (CVSS 7.5) in Lua, published January 23, 2019. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 17.4%, the 97th percentile. Fixed in lua5.3 5.3.5-r2.
References
packetstormsecurity.com/files/151335/Lua-5.3.5-Use-After-Free.html
github.com/Lua-Project/cve-analysis/blob/a43c9ccd00274b31fa2f24c6c8f20ce36655682d/CVE-2019-6706.pdf
github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71e
lua-users.org/lists/lua-l/2019-01/msg00039.html
access.redhat.com/security/cve/cve-2019-6706
lists.debian.org/debian-lts-announce/2023/06/msg00031.html
Show 24 moreShow less
nvd.nist.gov/vuln/detail/CVE-2019-6706
access.redhat.com/errata/RHSA-2019:3706
usn.ubuntu.com/3941-1
exploit-db.com/exploits/46246
lua.2524044.n2.nabble.com/Bug-Report-Use-after-free-in-debug-upvaluejoin-tc7685506.html
github.com/advisories/GHSA-f6gj-vrmg-ccf7
security.alpinelinux.org/vuln/CVE-2019-6706
vulners.com/cve/CVE-2019-6706
docs.bell-sw.com/security/cves/CVE-2019-6706
security-tracker.debian.org/tracker/CVE-2019-6706
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.1_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1670019
security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_3706.json
access.redhat.com/security/cve/CVE-2019-6706
cve.org/CVERecord?id=CVE-2019-6706
errata.rockylinux.org/RLSA-2019:3706
suse.com/support/update/announcement/2019/suse-su-20190247-1
bugzilla.suse.com/1123043
suse.com/security/cve/CVE-2019-6706
ubuntu.com/security/CVE-2019-6706
lua.2524044.n2.nabble.com/CVE-2019-6706-use-after-free-in-lua-upvaluejoin-function-tc7685575.html
ubuntu.com/security/notices/USN-3941-1
lists.opensuse.org/archives/list/[email protected]/thread/2WNFS4SVHRC2KCVWD37ND6TKGVC5LDK4