First published: Fri Jul 24 2020(Updated: )
Lua through 5.4.0 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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Lua Lua | >=5.3.1<5.4.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2020-15945 is a vulnerability in Lua through version 5.4.0 that can result in a segmentation fault.
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.
The vulnerability affects Lua versions from 5.3.1 to 5.4.0.
CVE-2020-15945 has a severity rating of medium (5.5).
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.