5.5medium
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…
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.55% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- BIT-LUA-2020-15945
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| lua lua | from 5.3.1 before 5.4.0 | NVD |
| lua (Bitnami) | from 5.3.1 before 5.4.0 | Bitnami Vulnerability Database |
All scores
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | medium rating |
What each source says
CVE List
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.
NVD (es)
Lua versiones hasta 5.4.0, presenta un fallo de segmentación en la función changedline en el archivo ldebug.c (por ejemplo, cuando es llamado por luaG_traceexec) porque espera incorrectamente que un valor oldpc siempre es actualizado siempre al regresar el flujo de control a una función
References
| http://lua-users.org/lists/lua-l/2020-07/msg00123.html | advisory, exploit, mailing-list, third-party-advisory | |
| https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3 | advisory, patch, third-party-advisory | |
| https://www.lua.org/bugs.html#5.4.0-8 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-15945 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-15945 changed 2025-02-19 | CVE Terms of Use |
| NVD | CVE-2020-15945 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LUA-2020-15945 changed 2026-09-08 | Apache-2.0 |