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.
https://lua-users.org/lists/lua-l/2022-05/msg00073.html
https://lua-users.org/lists/lua-l/2022-05/msg00042.html
https://lua-users.org/lists/lua-l/2022-05/msg00035.html
https://github.com/lua/lua/commit/42d40581dd919fb134c07027ca1ce0844c670daf