CVE-2020-15945: Medium severity lua lpeg vulnerability
Lua 5.4.0 (fixed in 5.4.1) has a segmentation fault in changedline in ldebug.c (e.g., when called by luaGtraceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.
Other sources
Lua through 5.4.0 has a segmentation fault in changedline in ldebug.c (e.g., when called by luaGtraceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2020-15945?
CVE-2020-15945 is a vulnerability in Lua through version 5.4.0 that can result in a segmentation fault.
How does the vulnerability in CVE-2020-15945 occur?
The vulnerability in CVE-2020-15945 occurs in the changedline function in ldebug.c when called by luaG_traceexec, as it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.
What software versions are affected by CVE-2020-15945?
The vulnerability affects Lua versions from 5.3.1 to 5.4.0.
What is the severity of CVE-2020-15945?
CVE-2020-15945 has a severity rating of medium (5.5).
How can I fix the vulnerability in CVE-2020-15945?
To fix the vulnerability in CVE-2020-15945, it is recommended to update to a version of Lua that is not impacted by the issue.