CVE-2026-41196 Luanti has a mod security sandbox escape
CriticalCVSS 9.0
EPSS 0.37%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
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).
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| luanti-org luanti | = >= 5.0.0, < 5.15.2 | No fix listed |
| debian/luanti(Debian:14) | < 5.15.2+dfsg-1 | 5.15.2+dfsg-1 |
| debian/luanti(Debian:13) | < 5.10.0+dfsg-5+deb13u1 | 5.10.0+dfsg-5+deb13u1 |
| ubuntu/minetest(Ubuntu:22.04) | < 5.4.1+repack-2ubuntu0.1~esm1 | 5.4.1+repack-2ubuntu0.1~esm1 |
| ubuntu/minetest(Ubuntu:24.04) | < 5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1 | 5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1 |
| ubuntu/luanti(Ubuntu:26.04) | < 5.10.0+dfsg-5+deb13u1build0.26.04.1 | 5.10.0+dfsg-5+deb13u1build0.26.04.1 |
| minetest | >= 5.0.0, < 5.15.2 | 5.15.2 |
| debian/luanti(Debian:13) | = 5.10.0+dfsg-5 | No fix listed |
| debian/luanti(Debian:14) | = 5.10.0+dfsg-5 | No fix listed |
| debian/luanti(Debian:14) | = 5.14.0+dfsg-1 | No fix listed |
| debian/luanti(Debian:14) | = 5.14.0+dfsg-2 | No fix listed |
| debian/luanti(Debian:14) | = 5.14.0+dfsg-3 | No fix listed |
| debian/luanti(Debian:14) | = 5.15.1+dfsg-1 | No fix listed |
| debian/luanti(Debian:14) | = 5.15.1+dfsg-2 | No fix listed |
References
- https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3 third-party-advisory
- https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896 patch
- Debian Security Tracker CVE-2026-41196 vendor-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2461027 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8732-1 vendor-advisory