{"id":"CVE-2020-24370","details":"ldebug.c in Lua 5.4.0 allows a negation overflow and segmentation fault in getlocal and setlocal, as demonstrated by getlocal(3,2^31).","aliases":["BIT-lua-2020-24370"],"modified":"2026-04-11T11:23:20.274186Z","published":"2020-08-17T17:15:13.877Z","related":["ALSA-2021:4510","MGASA-2020-0362","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"],"references":[{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/E6KONNG6UEI3FMEOY67NDZC32NBGBI44/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QXYMCIUNGK26VHAYHGP5LPW56G2KWOHQ/"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2020/09/msg00019.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00031.html"},{"type":"FIX","url":"https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b"},{"type":"EVIDENCE","url":"http://lua-users.org/lists/lua-l/2020-07/msg00324.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lua/lua","events":[{"introduced":"0"},{"last_affected":"e2fc2ce8dfe107d1e2742b459c2aaf137227bbc1"},{"introduced":"0"},{"last_affected":"78d986590060b615334ac214b6cc5b7d951b1d58"},{"introduced":"0"},{"last_affected":"c8e96d6e91dc2e3d5b175cc4cd811398ab35c82d"},{"introduced":"0"},{"last_affected":"7ea44b56a883857dc7ba28bd99406491034e254c"},{"introduced":"0"},{"last_affected":"3c55790ebee7148281cd00f44aa293e456b4da6d"},{"introduced":"0"},{"last_affected":"a1415c0d72053cf6f6f7e68033fa3b7f999ad960"},{"introduced":"0"},{"last_affected":"c25d59a6bdbc6f587310159a1975b399ad8dd079"},{"introduced":"0"},{"last_affected":"aa66ca76ce10db054e34de8a19a48d0beb5eb7a6"},{"introduced":"0"},{"last_affected":"e354c6355e7f48e087678ec49e340ca0696725b1"},{"introduced":"0"},{"last_affected":"063d4e4543088e7a21965bda8ee5a0f952a9029e"},{"introduced":"0"},{"last_affected":"c33b1728aeb7dfeec4013562660e07d32697aa6b"},{"fixed":"a585eae6e7ada1ca9271607a4f48dfb17868ab7b"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"5.2.0-NA"},{"introduced":"0"},{"last_affected":"5.2.1"},{"introduced":"0"},{"last_affected":"5.2.2"},{"introduced":"0"},{"last_affected":"5.2.3"},{"introduced":"0"},{"last_affected":"5.3.0-NA"},{"introduced":"0"},{"last_affected":"5.3.1"},{"introduced":"0"},{"last_affected":"5.3.2"},{"introduced":"0"},{"last_affected":"5.3.3"},{"introduced":"0"},{"last_affected":"5.3.4"},{"introduced":"0"},{"last_affected":"5.3.5"},{"introduced":"0"},{"last_affected":"5.4.0-NA"}]}}],"versions":["v1.2","v2.1","v2.2","v2.3-beta","v2.4","v2.4-beta","v2.5","v2.5-beta","v2.5.1","v3.0","v3.0-alpha","v3.1","v3.1-alpha","v3.2","v3.2-beta","v4.0","v4.0-alpha","v4.0-beta","v4.1-alpha","v5.0","v5.0-alpha","v5.0-beta","v5.1","v5.1-alpha","v5.1-beta","v5.1.1","v5.2-alpha","v5.2-beta","v5.2.0","v5.2.1","v5.2.2","v5.2.3","v5.3-alpha","v5.3-beta","v5.3.0","v5.3.1","v5.3.2","v5.3.3","v5.3.4","v5.3.5","v5.4-alpha","v5.4-beta","v5.4-w2","v5.4.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-24370.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"5.2.0-alpha"}]},{"events":[{"introduced":"0"},{"last_affected":"5.2.0-beta"}]},{"events":[{"introduced":"0"},{"last_affected":"5.3.0-alpha"}]},{"events":[{"introduced":"0"},{"last_affected":"5.3.0-beta"}]},{"events":[{"introduced":"0"},{"last_affected":"5.4.0-alpha"}]},{"events":[{"introduced":"0"},{"last_affected":"5.4.0-beta"}]},{"events":[{"introduced":"0"},{"last_affected":"31"}]},{"events":[{"introduced":"0"},{"last_affected":"32"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]}],"vanir_signatures_modified":"2026-04-11T11:23:20Z","vanir_signatures":[{"source":"https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b","deprecated":false,"target":{"file":"ldebug.c","function":"luaG_findlocal"},"digest":{"length":606,"function_hash":"160457310741932794514906761248697216809"},"signature_type":"Function","id":"CVE-2020-24370-3408fa99","signature_version":"v1"},{"source":"https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b","deprecated":false,"target":{"file":"ldebug.c","function":"findvararg"},"digest":{"length":298,"function_hash":"176948320927037737175998274991413929359"},"signature_type":"Function","id":"CVE-2020-24370-a6e6ec70","signature_version":"v1"},{"source":"https://github.com/lua/lua/commit/a585eae6e7ada1ca9271607a4f48dfb17868ab7b","deprecated":false,"target":{"file":"ldebug.c"},"digest":{"threshold":0.9,"line_hashes":["308106254715576835832771124558186333737","28150857163617153757180128882987340278","67856167705625202229537381893379792047","118168772934001778875555195425693302437","316101619877408557194703765822106706457","103962487352111355186447672861982043630","180146486087139942444320654781720975268","293123111573401127190810486268369394313","110117011450095061191785096815592359580"]},"signature_type":"Line","id":"CVE-2020-24370-caf2fa2e","signature_version":"v1"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}