# CVE-2020-24371: lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectg…

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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): 1.75%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-08-17T16:06:14.000Z
- Modified: 2026-09-08T08:48:09.123Z
- Also known as: BIT-LUA-2020-24371
- Weaknesses: CWE-763
- Assigned by: mitre

## Description

lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://www.lua.org/bugs.html#5.4.0-10> (exploit, advisory, patch, release-notes, vendor-advisory)
- <https://github.com/lua/lua/commit/a6da1472c0c5e05ff249325f979531ad51533110> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-24371> (web)

## Sources

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

---

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