{"id":"CVE-2022-33099","details":"An issue in the component luaG_runerror of Lua v5.4.4 and below leads to a heap-buffer overflow when a recursive error occurs.","aliases":["BIT-lua-2022-33099"],"modified":"2026-08-18T17:24:55.893108Z","published":"2022-07-01T11:26:38Z","related":["ALSA-2022:7329","openSUSE-SU-2024:12167-1","openSUSE-SU-2025:15401-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33099.json"},"references":[{"type":"WEB","url":"https://lua-users.org/lists/lua-l/2022-05/msg00035.html"},{"type":"WEB","url":"https://lua-users.org/lists/lua-l/2022-05/msg00042.html"},{"type":"WEB","url":"https://lua-users.org/lists/lua-l/2022-05/msg00073.html"},{"type":"WEB","url":"https://www.lua.org/bugs.html#Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error:~:text=Lua-stack%20overflow%20when%20C%20stack%20overflows%20while%20handling%20an%20error"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/33xxx/CVE-2022-33099.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RJNJ66IFDUKWJJZXHGOLRGIA3HWWC36R/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UHYZOEFDVLVAD6EEP4CDW6DNONIVVHPA/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-33099"},{"type":"FIX","url":"https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/lua/lua","events":[{"introduced":"9d067ab73b6befa0a5418f1df35c711f6c6918b3"},{"fixed":"42d40581dd919fb134c07027ca1ce0844c670daf"}],"database_specific":{"cpe":"cpe:2.3:a:lua:lua:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"5.4.2"},{"last_affected":"5.4.4"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v5.4.4","v5.4.3","v5.4.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-33099.json","vanir_signatures_modified":"2026-08-18T17:24:55Z","vanir_signatures":[{"digest":{"threshold":0.9,"line_hashes":["47064890593937786897531178058191810844","332134119330750700401512169069853671896","265513752968495196327410634712261241495","4686135018978641772480404961188955158","191357327930270353914184361696403200245"]},"id":"CVE-2022-33099-130d0ed2","signature_type":"Line","signature_version":"v1","source":"https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf","target":{"file":"ldebug.c"},"deprecated":false},{"deprecated":false,"digest":{"line_hashes":["238664278947635791321220985534781971204","110587412781719742331913145596387590167","122377330859284596425482454709373106670","41978752855376686284244150713173810101","244764617910085233208160284415443226461","237849260543562680110344945870625485769","37562800747512701822999390229154263700","219524848240838254345629611037116750206","108725855737991599988774000492808822080"],"threshold":0.9},"id":"CVE-2022-33099-422ac859","signature_type":"Line","signature_version":"v1","source":"https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf","target":{"file":"lvm.c"}},{"id":"CVE-2022-33099-a6a7014b","signature_type":"Function","signature_version":"v1","source":"https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf","target":{"file":"lvm.c","function":"luaV_concat"},"deprecated":false,"digest":{"function_hash":"144187715496695041250959146983441313261","length":1148}},{"deprecated":false,"digest":{"function_hash":"281541209982265951639218471101078983413","length":358},"id":"CVE-2022-33099-e7e66be7","signature_type":"Function","signature_version":"v1","source":"https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf","target":{"file":"ldebug.c","function":"luaG_runerror"}}]}}],"schema_version":"1.9.0"}