Skip to content
OpenAdvisories
Critical · 9.0 CVE-2026-41196 EUVD-2026-25154

Luanti has a mod security sandbox escape

Published Apr 23, 2026 · Updated Apr 23, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
luanti-org luanti >= 5.0.0, < 5.15.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 luanti 5.15.2+dfsg-1 —
Debian 13 luanti 5.10.0+dfsg-5+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS luanti 5.10.0+dfsg-5+deb13u1build0.26.04.1 —
Ubuntu 25.10 luanti No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS minetest 5.6.1+dfsg+~1.9.0mt8+dfsg-4ubuntu0.1~esm1 USN-8732-1
Ubuntu Pro 22.04 LTS minetest 5.4.1+repack-2ubuntu0.1~esm1 USN-8732-1
Ubuntu Pro 20.04 LTS minetest 5.1.1+repack-1ubuntu0.1~esm1 USN-8732-1

Advisories 1

References