CVE-2019-6706
published 2019-01-23CVE-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…
PriorityP355high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EXPLOIT
EPSS
17.22%
96.7th percentile
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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | lua5.1 | < lua5.3 5.3.6-1 (bookworm) | lua5.3 5.3.6-1 (bookworm) |
| debian | lua5.2 | < lua5.3 5.3.6-1 (bookworm) | lua5.3 5.3.6-1 (bookworm) |
| debian | lua5.3 | < lua5.3 5.3.6-1 (bookworm) | lua5.3 5.3.6-1 (bookworm) |
| debian | lua50 | < lua5.3 5.3.6-1 (bookworm) | lua5.3 5.3.6-1 (bookworm) |
| lua | lua | — | — |
| msrc | cbl2_lua_5.3.5-11_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_lua_5.3.5-8_on_cbl_mariner_1.0 | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5LOW
vendor_msrc7.5HIGH
vendor_redhat7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Lua vulnerability
vendor_ubuntu·2019-04-08
CVE-2019-6706 Lua vulnerability
Title: Lua vulnerability
Summary: Lua could be made to crash if it received a specially crafted script.
Fady Othman discovered that Lua incorrectly handled certain scripts.
An attacker could possibly use this issue to cause a denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
vendor_redhat·2019-01-10·CVSS 7.5
CVE-2019-6706 [HIGH] CWE-416 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
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.
Package: ceph (Red Hat Ceph Storage 3) - Will not fix
Package: lua (Red Hat Enterprise Linux 6) - Not affected
Package: lua (Red Hat Enterprise Linux 7) - Not affected
Package: lua (Red Hat JBoss Web Server 5) - Not affected
Microsoft
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 ce
vendor_msrc·2019-01-08·CVSS 7.5
CVE-2019-6706 [HIGH] CWE-416 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 ce
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified
Debian
CVE-2019-6706: lua5.1 - Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a cras...
vendor_debian·2019·CVSS 7.5
CVE-2019-6706 [HIGH] CVE-2019-6706: lua5.1 - Lua 5.3.5 has a use-after-free in lua_upvaluejoin in lapi.c. For example, a cras...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
GHSA
GHSA-f6gj-vrmg-ccf7: Lua 5
ghsa_unreviewed·2022-05-13
CVE-2019-6706 [HIGH] CWE-416 GHSA-f6gj-vrmg-ccf7: Lua 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.
OSV
CVE-2019-6706: Lua 5
osv·2019-01-23·CVSS 7.5
CVE-2019-6706 [HIGH] CVE-2019-6706: Lua 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.
No detection rules found.
Bugzilla
CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
bugzilla·2019-01-28·CVSS 7.5
CVE-2019-6706 [HIGH] CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service
Discovered in lua-5.3.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.
Upstream:
http://lua.2524044.n2.nabble.com/CVE-2019-6706-use-after-free-in-lua-upvaluejoin-function-tc7685575.html
http://lua.2524044.n2.nabble.com/Bug-Report-Use-after-free-in-debug-upvaluejoin-tc7685506.html
Discussion:
Created lua tracking bugs for this issue:
Affects: fedora-all [bug 1670020]
---
*** Bug 1669031 has been marked as a duplicate of this bug. ***
---
upvaluejoin seems to have been added in 5.2 [1]. Thus, Red Hat Enterprise Linux
Bugzilla
CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service [fedora-all]
bugzilla·2019-01-28·CVSS 7.5
CVE-2019-6706 [HIGH] CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service [fedora-all]
CVE-2019-6706 lua: use-after-free in lua_upvaluejoin in lapi.c resulting in denial of service [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affect
http://lua-users.org/lists/lua-l/2019-01/msg00039.htmlhttp://packetstormsecurity.com/files/151335/Lua-5.3.5-Use-After-Free.htmlhttps://access.redhat.com/security/cve/cve-2019-6706https://github.com/Lua-Project/cve-analysis/blob/a43c9ccd00274b31fa2f24c6c8f20ce36655682d/CVE-2019-6706.pdfhttps://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71ehttps://lists.debian.org/debian-lts-announce/2023/06/msg00031.htmlhttp://lua-users.org/lists/lua-l/2019-01/msg00039.htmlhttp://packetstormsecurity.com/files/151335/Lua-5.3.5-Use-After-Free.htmlhttps://access.redhat.com/security/cve/cve-2019-6706https://github.com/Lua-Project/cve-analysis/blob/a43c9ccd00274b31fa2f24c6c8f20ce36655682d/CVE-2019-6706.pdfhttps://github.com/lua/lua/commit/89aee84cbc9224f638f3b7951b306d2ee8ecb71ehttps://lists.debian.org/debian-lts-announce/2023/06/msg00031.html
2019-01-23
Published