Use after free in garbage collector and finalizer of lgc.c in Lua interpreter 5.4.0~5.4.3 allows attackers to perform Sandbox Escape via a crafted script file.
https://github.com/Lua-Project/lua-5.4.4-sandbox-escape-with-new-vulnerability
https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-31762
http://lua-users.org/lists/lua-l/2021-12/msg00030.html
http://lua-users.org/lists/lua-l/2021-12/msg00015.html