CVE-2020-15945
CVE-2020-15945 is a medium-severity vulnerability in Lua with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: Medium (CVSS 3.x base score 5.5)
- CVSS v2: 2.1
- EPSS exploit prediction: 1% (41st percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Lua
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2020-15945?
- 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.
- How severe is CVE-2020-15945?
- CVE-2020-15945 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2020-15945 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (41st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2020-15945?
- CVE-2020-15945 affects Lua. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2020-15945?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2020-15945 published?
- CVE-2020-15945 was published on 2020-07-24 and last updated on 2026-06-17.
References
- http://lua-users.org/lists/lua-l/2020-07/msg00123.html
- https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3
- https://www.lua.org/bugs.html#5.4.0-8
Affected products (1)
- cpe:2.3:a:lua:lua:*:*:*:*:*:*:*:*
More vulnerabilities in Lua
- CVE-2020-15889 — Critical (CVSS 9.8): Lua 5.4.0 has a getobjname heap-based buffer over-read because youngcollection in lgc.c uses markold for an…
- CVE-2022-28805 — Critical (CVSS 9.1): singlevar in lparser.c in Lua from (including) 5.4.0 up to (excluding) 5.4.4 lacks a certain luaK_exp2anyregup call,…
- CVE-2020-15888 — High (CVSS 8.8): Lua through 5.4.0 mishandles the interaction between stack resizes and garbage collection, leading to a heap-based…
- CVE-2020-24342 — High (CVSS 7.8): Lua through 5.4.0 allows a stack redzone cross in luaO_pushvfstring because a protection mechanism wrongly calls…
- CVE-2021-45985 — High (CVSS 7.5): In Lua 5.4.3, an erroneous finalizer called during a tail call leads to a heap-based buffer over-read.
- CVE-2022-33099 — High (CVSS 7.5): An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error…