← Vulnerability feed

Vulnerability record · CVE-2020-15945 · published 24 July 2020

CVE-2020-15945: Lua vulnerability

Lua · Lua

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.

5.5 CVSS 3.1 Medium EPSS 0.55% · top 56.5%
5.5CVSS 3.1 base score, v2 2.1
0.55%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
5References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2020-15945 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-15889Lua out-of-bounds read vulnerabilityLua 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.EPSS 2.2%9.1CVE-2022-28805Lua out-of-bounds read vulnerabilitysinglevar 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 o…EPSS 3.0%8.8CVE-2020-15888Lua out-of-bounds read vulnerabilityLua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based buffer overflow, heap-based buffer…EPSS 2.4%7.8CVE-2020-24342Lua memory buffer overflow vulnerabilityLua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls luaD_callnoyield twice in a row.EPSS 1.1%7.5CVE-2021-45985Lua out-of-bounds write vulnerabilityIn Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.EPSS 1.4%7.5CVE-2022-33099Lua out-of-bounds write vulnerabilityAn issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.EPSS 2.8%7.5CVE-2020-24369Lua null pointer dereference vulnerabilityldebug.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.EPSS 1.7%7.5CVE-2019-6706Lua use after free vulnerabilityLua 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 d…EPSS 17%

Source: NIST National Vulnerability Database (record CVE-2020-15945), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.