CVE-2026-41196: Luanti has a mod security sandbox escape
Last updated 7 September 2026
Other sources
Luanti (formerly Minetest) is an open source voxel game-creation platform. Starting in version 5.0.0 and prior to version 5.15.2, a malicious mod can trivially escape the sandboxed Lua environment to execute arbitrary code and gain full filesystem access on the user's device. This applies to the server-side mod, async and mapgen as well as the client-side (CSM) environments. This vulnerability is only exploitable when using LuaJIT. Version 5.15.2 contains a patch. On release versions, one can also patch this issue without recompiling by editing builtin/init.lua and adding the line getfenv = nil at the end. Note that this will break mods relying on this function (which is not inherently unsafe).
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/luantito a version that resolves this vulnerability.Fixed in 5.10.0+dfsg-5+deb13u1Fixed in 5.15.2+dfsg-2 - Upgrade
Upgrade
debian/luantito a version that resolves this vulnerability.Fixed in 5.10.0+dfsg-5+deb13u1 - Upgrade
Upgrade
debian/luantito a version that resolves this vulnerability.Fixed in 5.15.2+dfsg-1 - Upgrade
Upgrade
luantito a version that resolves this vulnerability.Fixed in 5.15.2 - Configuration
For release versions where patching without recompiling is needed, edit `builtin/init.lua` and add the line `getfenv = nil` at the end. Note: this will break mods relying on this function.
Luanti builtin/init.lua (Lua sandbox environment) = Append `getfenv = nil` at the end of builtin/init.lua
Event History
Frequently Asked Questions
What is the severity of CVE-2026-41196?
CVE-2026-41196 is considered a critical vulnerability due to its ability to allow arbitrary code execution and full filesystem access.
How do I fix CVE-2026-41196?
To resolve CVE-2026-41196, upgrade Luanti from any version between 5.0.0 and 5.15.2 to version 5.15.2 or later.
What is the exploitability of CVE-2026-41196?
CVE-2026-41196 is highly exploitable as it allows malicious mods to escape the sandboxed Lua environment.
Which versions of Luanti are affected by CVE-2026-41196?
CVE-2026-41196 affects Luanti versions 5.0.0 to 5.15.2.
Is there a workaround for CVE-2026-41196?
No official workaround is available for CVE-2026-41196; upgrading to a patched version is recommended.