# 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 luaGtraceexec) because it incorrectly…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-07-24T20:05:57.000Z
- Modified: 2026-09-08T08:48:09.122Z
- Also known as: BIT-LUA-2020-15945
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lua lua: from 5.3.1 before 5.4.0
- lua (Bitnami): from 5.3.1 before 5.4.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <http://lua-users.org/lists/lua-l/2020-07/msg00123.html> (exploit, advisory, 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

- CVE List: [CVE-2020-15945](https://www.cve.org/CVERecord?id=CVE-2020-15945), CVE Terms of Use, modified 2025-02-19
- NVD: [CVE-2020-15945](https://nvd.nist.gov/vuln/detail/CVE-2020-15945), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LUA-2020-15945](https://osv.dev/vulnerability/BIT-LUA-2020-15945), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-15945 · Whole record: https://cve.day/CVE-2020-15945.json · Rebuilt by cve.day 2026-11-25T22:57:53.622Z
