What’s Vulnerable › Vulnerabilities
CVE-2020-15945
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-07-24 · updated 2026-06-17
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.
Affected products
- Lua: from 5.3.1 before 5.4.0 — fixed in 5.4.0
How to fix
Upgrade to a fixed version: Lua 5.4.0. Check the vendor advisory for mitigations.
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
- http://lua-users.org/lists/lua-l/2020-07/msg00123.html
- https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3
Get alerted when CVE-2020-15945 or the next vulnerability affects your stack