{"id":"CVE-2026-41196","summary":"Luanti has a mod security sandbox escape","details":"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).","aliases":["CVE-2026-40959","GHSA-g596-mf82-w8c3"],"modified":"2026-07-08T08:26:15.905352957Z","published":"2026-04-23T00:28:56.716Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196.json"},{"type":"ADVISORY","url":"https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41196"},{"type":"FIX","url":"https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/luanti-org/luanti","events":[{"introduced":"f9d1810b1e763a6c0a47ff30bd83d7903d3d614f"},{"fixed":"044ab8a35be38593aefd8fdde9601cc44754f3cc"},{"fixed":"8a929dfb97aa08337f49ba1bb96a56d6557dc896"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:minetest:minetest:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"5.0.0"},{"fixed":"5.15.2"}]}}],"versions":["5.15.1","5.15.0","5.15.0-rc1","5.14.0","5.14.0-rc1","5.13.0","5.12.0","5.11.0","5.11.0-rc1","5.10.0","5.10.0-rc1","5.9.0","5.8.0","5.7.0","5.6.0","5.5.0","5.4.0","5.3.0","5.2.0","5.1.0","5.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41196.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}