Arbitrary Code Injection Affecting minetest/minetest package, versions [5.5.0,5.16.0-rc1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MINETESTMINETEST-16335692
  • published1 May 2026
  • disclosed23 Apr 2026
  • creditUnknown

Introduced: 23 Apr 2026

CVE-2026-41196  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade minetest/minetest to version 5.16.0-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection 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).

CVSS Base Scores

version 4.0
version 3.1