Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.4
CVE-2026-40959: Luanti can let a bad mod run any code on your computer
CVE-2026-40959 · published 6 months ago
Summary
Versions of the Luanti game platform from 5.0.0 up to 5.15.1 let a malicious add‑on break out of its safe sandbox and access the whole file system. This risk exists for both server and client add‑ons when LuaJIT is used. Upgrade to version 5.15.2 or edit the file builtin/init.lua to disable the vulnerable function.
Original advisory text
Luanti has a mod security sandbox escape
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).
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41196 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40959... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-40959 Vendor Advisory
- https://github.com/luanti-org/luanti/commit/53cef183e2a85a4daff84ac1a9a7946f940d... Patch
- https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3 Vendor Advisory
- https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557d... Patch
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196... Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Severity
9.4
Critical
Type
CWE-829Inclusion of Functionality from Untrusted Control Sphere
CWE-94Code Injection
Timeline
Published23 Apr 2026
Updated4 Nov 2026
First seen16 Apr 2026
Track software like this
Free during beta