{"id":"CVE-2026-41196","aliases":["DEBIAN-CVE-2026-41196","EUVD-2026-25154","GHSA-g596-mf82-w8c3","UBUNTU-CVE-2026-41196","USN-8732-1"],"status":"published","title":"Luanti has a mod security sandbox escape","description":"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).","severity":{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00374,"percentile":0.31665,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-829","CWE-94"],"published":"2026-04-16T00:51:19.52Z","modified":"2026-10-28T11:13:15Z","fixes":[{"ecosystem":"Debian:13","package":"luanti","fixed_in":["5.10.0+dfsg-5+deb13u1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"luanti","fixed_in":["5.15.2+dfsg-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"minetest","fixed_in":["5.1.1+repack-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"minetest","fixed_in":["5.4.1+repack-2ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"minetest","fixed_in":["5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:26.04:LTS","package":"luanti","fixed_in":["5.10.0+dfsg-5+deb13u1build0.26.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:13","package":"luanti","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.0+dfsg-5+deb13u1"}]}],"versions":["5.10.0+dfsg-5"]},{"source":"osv","ecosystem":"Debian:14","package":"luanti","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.15.2+dfsg-1"}]}],"versions":["5.10.0+dfsg-5","5.14.0+dfsg-1","5.14.0+dfsg-2","5.14.0+dfsg-3","5.15.1+dfsg-1","5.15.1+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1+repack-1ubuntu0.1~esm1"}]}],"versions":["5.0.1+repack-2","5.1.0+repack-1","5.1.1+repack-1","5.1.1+repack-1build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1+repack-2ubuntu0.1~esm1"}]}],"versions":["5.3.0+repack-2.1","5.4.1+repack-2","5.4.1+repack-2build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1"}]}],"versions":["5.6.1+dfsg+~1.9.0mt8+dfsg-2build1","5.6.1+dfsg+~1.9.0mt8+dfsg-3","5.6.1+dfsg+~1.9.0mt8+dfsg-4","5.6.1+dfsg+~1.9.0mt8+dfsg-4build2","5.6.1+dfsg+~1.9.0mt8+dfsg-4build3"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"luanti","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.10.0+dfsg-5","5.10.0+dfsg-5+deb13u1build0.25.10.1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"luanti","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.0+dfsg-5+deb13u1build0.26.04.1"}]}],"versions":["5.10.0+dfsg-5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.1.1+repack-1ubuntu0.1~esm1"}]}],"versions":["5.0.1+repack-2","5.1.0+repack-1","5.1.1+repack-1","5.1.1+repack-1build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.4.1+repack-2ubuntu0.1~esm1"}]}],"versions":["5.3.0+repack-2.1","5.4.1+repack-2","5.4.1+repack-2build1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"minetest","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1"}]}],"versions":["5.6.1+dfsg+~1.9.0mt8+dfsg-2build1","5.6.1+dfsg+~1.9.0mt8+dfsg-3","5.6.1+dfsg+~1.9.0mt8+dfsg-4","5.6.1+dfsg+~1.9.0mt8+dfsg-4build2","5.6.1+dfsg+~1.9.0mt8+dfsg-4build3"]}],"products":[{"vendor":"luanti-org","product":"luanti"},{"vendor":"minetest","product":"minetest"}],"references":[{"url":"https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3","tags":["x_refsource_CONFIRM","Third Party Advisory","advisory"]},{"url":"https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40959.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40959","tags":["advisory"]},{"url":"https://github.com/luanti-org/luanti/commit/53cef183e2a85a4daff84ac1a9a7946f940da8f8","tags":["fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41196","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-41196","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-41196","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-41196","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8732-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-41196","title":"Luanti has a mod security sandbox escape","description":"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).","status":"published","published":"2026-04-23T00:28:56.716Z","modified":"2026-04-23T14:38:39.113Z","cvss":[{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T13:41:08.498858Z"}],"euvd":[{"id":"EUVD-2026-25154","description":"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).","status":"published","published":"2026-04-23T00:28:56Z","modified":"2026-04-23T14:38:39Z","cvss":[{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical"}],"updated_at":"2026-11-02T19:24:19.171803Z"}],"nvd":[{"id":"CVE-2026-41196","description":"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).","status":"published","published":"2026-04-23T02:16:17.9Z","modified":"2026-06-17T10:46:18.673Z","cvss":[{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"critical","assessor":"secondary"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:12:15.867234Z"}],"osv":[{"id":"CVE-2026-40959","description":"Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod.","status":"published","published":"2026-04-16T00:51:19.52Z","modified":"2026-10-28T11:13:15.405049413Z","cvss":[{"version":"3.1","score":9.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-829"],"updated_at":"2026-11-02T15:45:03.424067Z"},{"id":"CVE-2026-41196","title":"Luanti has a mod security sandbox escape","description":"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).","status":"published","published":"2026-04-23T00:28:56.716Z","modified":"2026-10-28T10:49:48.600682717Z","cvss":[{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:45:03.764807Z"},{"id":"DEBIAN-CVE-2026-41196","description":"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).","status":"published","published":"2026-04-23T02:16:17.9Z","modified":"2026-10-01T03:03:12.066584243Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:54.892385Z"},{"id":"UBUNTU-CVE-2026-41196","description":"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).","status":"published","published":"2026-04-23T02:16:00Z","modified":"2026-09-07T19:00:05.186157992Z","cvss":[{"version":"4.0","score":9,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","level":"critical"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:56:16.686388Z"},{"id":"USN-8732-1","title":"minetest vulnerability","description":"It was discovered that Minetest did not properly sanitize the Lua sandbox environment\nwhen using LuaJIT. A malicious mod could escape the sandbox to execute arbitrary code\nand gain full file system access on the server. An attacker could use this issue to\ncompromise the server.","status":"published","published":"2026-09-07T10:31:04Z","modified":"2026-09-08T12:40:42.578325424Z","updated_at":"2026-11-02T16:58:26.907654Z"}]}}
