{"id":"CVE-2020-24371","aliases":["AZL-40962","BIT-lua-2020-24371","DEBIAN-CVE-2020-24371","EUVD-2020-17103","GHSA-4m5p-2hm8-9fxm","SUSE-SU-2021:2196-1","openSUSE-SU-2021:0962-1","openSUSE-SU-2021:2196-1","openSUSE-SU-2024:11028-1","openSUSE-SU-2024:11029-1","openSUSE-SU-2025:15401-1"],"status":"published","title":"lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a...","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01745,"percentile":0.78085,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-763"],"published":"2020-08-17T16:06:14Z","modified":"2026-11-05T05:40:51Z","fixes":[{"ecosystem":"Azure Linux:3","package":"ceph","fixed_in":["18.2.2-3"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"lua","fixed_in":["5.4.1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"lua5.4","fixed_in":["5.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"lua5.4","fixed_in":["5.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"lua5.4","fixed_in":["5.4.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Azure Linux:3","package":"ceph","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.2.2-3"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"lua","ranges":[{"type":"SEMVER","events":[{"introduced":"5.4.0"},{"fixed":"5.4.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"lua5.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"lua5.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"lua5.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1-1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP2","package":"lua53","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.6-3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","package":"lua53","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.6-3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.0","package":"lua53","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.6-3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"lua53","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.6-lp152.5.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"lua53","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.3.6-3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"lua55","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.0~beta1-1.1"}]}],"bundled":9}],"products":[{"vendor":"lua","product":"lua"}],"references":[{"url":"https://github.com/lua/lua/commit/a6da1472c0c5e05ff249325f979531ad51533110","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix"]},{"url":"https://www.lua.org/bugs.html#5.4.0-10","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Release Notes","Vendor Advisory","advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24371","tags":["web"]},{"url":"https://www.lua.org/bugs.html#5.4.0-9"},{"url":"https://github.com/advisories/GHSA-4m5p-2hm8-9fxm"},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-24371","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20212196-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1175448","tags":["report"]},{"url":"https://bugzilla.suse.com/1175449","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2020-24370","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-24371","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/OOVDNMRFDTKUTT25LOX5ABPHFFAREA4V/","tags":["advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/EASBVV4MIBIGZHO5CD23ITJBJVVHVDEU/","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2020-15888","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-15945","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-24342","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-24369","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-43519","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-44647","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-33099","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2020-24371","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.","status":"published","published":"2020-08-17T16:06:14Z","modified":"2024-08-04T15:12:08.966Z","updated_at":"2026-11-02T14:35:54.468882Z"}],"euvd":[{"id":"EUVD-2020-17103","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.","status":"published","published":"2020-08-17T16:06:14Z","modified":"2024-08-04T15:12:08Z","updated_at":"2026-11-03T03:07:20.249898Z"}],"ghsa":[{"id":"GHSA-4m5p-2hm8-9fxm","title":"lgc.c in Lua 5.4.0 mishandles the interaction between barriers and the sweep phase, leading to a...","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.","status":"published","published":"2022-05-24T17:26:02Z","modified":"2023-02-04T05:05:46Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-763"],"updated_at":"2026-11-02T14:53:58.500745Z"}],"nvd":[{"id":"CVE-2020-24371","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.","status":"published","published":"2020-08-17T17:15:13.927Z","modified":"2026-06-17T03:05:26.95Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-763"],"updated_at":"2026-11-02T14:06:13.05572Z"}],"osv":[{"id":"AZL-40962","title":"CVE-2020-24371 affecting package ceph for versions less than 18.2.2-3","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.","status":"published","published":"2020-08-17T17:15:13Z","modified":"2026-11-05T05:40:51Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-05T16:41:19.893001Z"},{"id":"CVE-2020-24371","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.","status":"published","published":"2020-08-17T17:15:13.927Z","modified":"2026-10-20T13:56:56.703560583Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:44:15.879068Z"},{"id":"DEBIAN-CVE-2020-24371","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.","status":"published","published":"2020-08-17T17:15:13.927Z","modified":"2026-10-26T12:01:01.909381422Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:33.729655Z"},{"id":"BIT-lua-2020-24371","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.","status":"published","published":"2024-03-06T10:56:38.075Z","modified":"2026-09-08T08:48:09.123963664Z","updated_at":"2026-11-02T15:28:32.645004Z"},{"id":"openSUSE-SU-2021:0962-1","title":"Security update for lua53","description":"This update for lua53 fixes the following issues:\n\nUpdate to version 5.3.6:\n\n- CVE-2020-24371: lgc.c mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage (bsc#1175449)\n- CVE-2020-24370: ldebug.c allows a negation overflow and segmentation fault in getlocal and setlocal (bsc#1175448)\n- Long brackets with a huge number of '=' overflow some internal buffer arithmetic.\n\nThis update was imported from the SUSE:SLE-15:Update update project.","status":"published","published":"2021-07-02T18:06:38Z","modified":"2026-02-04T04:34:05.2917Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:2196-1","title":"Security update for lua53","description":"This update for lua53 fixes the following issues:\n\nUpdate to version 5.3.6:\n\n- CVE-2020-24371: lgc.c mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage (bsc#1175449)\n- CVE-2020-24370: ldebug.c allows a negation overflow and segmentation fault in getlocal and setlocal (bsc#1175448)\n- Long brackets with a huge number of '=' overflow some internal buffer arithmetic.\n","status":"published","published":"2021-07-10T18:53:36Z","modified":"2026-02-04T04:03:27.306128Z","updated_at":"2026-11-02T16:58:32.266854Z"},{"id":"openSUSE-SU-2024:11028-1","title":"liblua5_3-5-32bit-5.3.6-1.6 on GA media","description":"These are all security issues fixed in the liblua5_3-5-32bit-5.3.6-1.6 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:17:54.299192Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"openSUSE-SU-2024:11029-1","title":"liblua5_4-5-32bit-5.4.3-4.2 on GA media","description":"These are all security issues fixed in the liblua5_4-5-32bit-5.4.3-4.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:21:54.017651Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"openSUSE-SU-2025:15401-1","title":"liblua5_5-5-5.5.0~beta1-1.1 on GA media","description":"These are all security issues fixed in the liblua5_5-5-5.5.0~beta1-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-08-03T00:00:00Z","modified":"2026-03-23T04:53:43.51161Z","updated_at":"2026-11-02T16:58:37.810934Z"},{"id":"SUSE-SU-2021:2196-1","title":"Security update for lua53","description":"This update for lua53 fixes the following issues:\n\nUpdate to version 5.3.6:\n\n- CVE-2020-24371: lgc.c mishandles the interaction between barriers and the sweep phase, leading to a memory access violation involving collectgarbage (bsc#1175449)\n- CVE-2020-24370: ldebug.c allows a negation overflow and segmentation fault in getlocal and setlocal (bsc#1175448)\n- Long brackets with a huge number of '=' overflow some internal buffer arithmetic.\n","status":"published","published":"2021-06-29T07:41:54Z","modified":"2026-02-04T03:20:15.624872Z","updated_at":"2026-11-02T15:53:49.138643Z"}]}}
