LuaCVEs & Vulnerabilities

17 CVEs affecting Lua products, tracked from the National Vulnerability Database, with CVSS/EPSS scores and exploitation status.

Most Affected Products

lua 36
CVE-2021-45985HIGH

In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.

10 Apr 2023
7.5
CVSS
CVE-2022-33099HIGH

An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.

1 Jul 2022
7.5
CVSS
CVE-2022-28805CRITICAL

singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.

8 Apr 2022
9.1
CVSS
CVE-2021-44964MEDIUM

Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.

14 Mar 2022
6.3
CVSS
CVE-2021-44647MEDIUM

Lua v5.4.3 and above are affected by SEGV by type confusion in funcnamefromcode function in ldebug.c which can cause a local denial of service.

11 Jan 2022
5.5
CVSS
CVE-2021-43519MEDIUM

Stack overflow in lua_resume of ldo.c in Lua Interpreter 5.1.0~5.4.4 allows attackers to perform a Denial of Service via a crafted script file.

9 Nov 2021
5.5
CVSS
CVE-2021-32921MEDIUM

An issue was discovered in Prosody before 0.11.9. It does not use a constant-time algorithm for comparing certain secret strings when running under Lua 5.2 or later. This can potentially be used in a timing attack to reveal the contents of secret strings to an attacker.

13 May 2021
5.9
CVSS
CVE-2021-32918HIGH

An issue was discovered in Prosody before 0.11.9. Default settings are susceptible to remote unauthenticated denial-of-service (DoS) attacks via memory exhaustion when running under Lua 5.2 or Lua 5.3.

13 May 2021
7.5
CVSS
CVE-2020-24371MEDIUM

lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage.

17 Aug 2020
5.3
CVSS
CVE-2020-24370MEDIUM

ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).

17 Aug 2020
5.3
CVSS
CVE-2020-24369HIGH

ldebug.c in Lua 5.4.0 attempts to access debug information via the line hook of a stripped function, leading to a NULL pointer dereference.

17 Aug 2020
7.5
CVSS
CVE-2020-24342HIGH

Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls luaD_callnoyield twice in a row.

13 Aug 2020
7.8
CVSS
CVE-2020-15945MEDIUM

Lua 5.4.0 (fixed in 5.4.1) has a segmentation fault in changedline in ldebug.c (e.g., when called by luaG_traceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.

25 Jul 2020
5.5
CVSS
CVE-2020-15889CRITICAL

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.

22 Jul 2020
9.8
CVSS
CVE-2020-15888HIGH

Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer over-read, or use-after-free.

22 Jul 2020
8.8
CVSS
CVE-2019-6706HIGHpoc

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.

23 Jan 2019
7.5
CVSS
CVE-2014-5461MEDIUM

Buffer overflow in the vararg functions in ldo.c in Lua 5.1 through 5.2.x before 5.2.3 allows context-dependent attackers to cause a denial of service (crash) via a small number of arguments to a function with a large number of fixed arguments.

4 Sep 2014
5.0
CVSS
← PrevPage 1 / 1Next →