Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Luanti server
-
DeliveryUpload malicious mod package
-
ExploitServer loads mod at startup
-
InstallMod invokes getfenv to escape sandbox
-
C2Execute arbitrary native code via LuaJIT FFI
-
ExecuteAccess filesystem as process user
-
ImpactExfiltrate data or install persistence
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target Luanti installation to be compiled with or using LuaJIT as the Lua interpreter - standard Lua interpreter deployments are not vulnerable. The attacker must have privileges to install or execute mods, either as a server administrator installing server-side mods, or as a player loading client-side mods (CSM). The malicious mod must be loaded and executed, which occurs automatically on server startup for server-side mods or when a player connects/loads a world for client-side mods. No user interaction beyond the initial mod installation is required for exploitation. The vulnerability is exploitable in default LuaJIT configurations without requiring specific non-default settings. Limiting factors include: authentication is required (PR:L) to install mods in most deployments, the specific LuaJIT requirement excludes standard Lua builds, and client-side exploitation requires victim players to enable CSM functionality and load the malicious mod. |
| Impact | This vulnerability presents critical risk for Luanti deployments using LuaJIT. The CVSS:4.0 score of 9.0 reflects high impact across confidentiality, integrity, and availability (VC:H/VI:H/VA:H) with scope change to the underlying system (SC:H/SI:H/SA:H). Attack complexity is low (AC:L) with network vector (AV:N), though attack requirements are present (AT:P) requiring the target to use LuaJIT specifically. The low privilege requirement (PR:L) means any user authorized to install or run mods can exploit this - a realistic scenario in multiplayer servers with mod support or users downloading community content. However, real-world risk is moderated by several factors: no confirmed active exploitation (not in CISA KEV), no public proof-of-concept identified, and the specific prerequisite that LuaJIT must be enabled (many distributions use standard Lua interpreter). SSVC automatable assessment is limited because exploitation requires mod installation/execution, not pure network request. The scope change elevates this above typical mod sandbox escapes - full filesystem access enables data theft, malware installation, and lateral movement. Priority should be HIGH for servers allowing user-generated mods with LuaJIT, MEDIUM for single-player installations with trusted mod sources only. |
| Exploit ScenarioDerived | An attacker with mod installation privileges on a Luanti server creates or uploads a malicious mod containing Lua code that invokes the getfenv function to escape the sandbox. Once the mod executes (either server-side during load or client-side when a player connects), the attacker gains arbitrary code execution as the Luanti process user, enabling exfiltration of world files, player credentials, or server configuration data. The attacker could also install persistent backdoors, cryptominers, or pivot to other systems accessible from the compromised host. In client-side scenarios, malicious mods distributed through community repositories could compromise players' personal systems when they join servers or load single-player worlds with the infected mod. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
Remote code execution in Luanti 5.0.0 through 5.15.1 allows authenticated attackers to escape the Lua sandbox via malicious mods, achieving arbitrary code execution and full filesystem access on victim devices when LuaJIT is enabled. The vulnerability affects server-side mods, async/mapgen environments, and client-side mods (CSM), requiring only low privileges to exploit. A vendor patch is available in version 5.15.2, addressing a CWE-94 code injection flaw that enables complete compromise of the host system. No active exploitation or proof-of-concept has been publicly identified at time of analysis.
RemediationAI
Upgrade to Luanti version 5.15.2 or later, which contains the vendor-released patch available at https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896. For users unable to immediately upgrade release versions 5.0.0-5.15.1, apply the interim mitigation by editing builtin/init.lua and adding 'getfenv = nil' at the end of the file, then restarting the server/client. Note this workaround will break any legitimate mods that rely on getfenv functionality, requiring compatibility testing before deployment in production environments. Alternative compensating control: recompile Luanti without LuaJIT support, using the standard Lua interpreter instead, which eliminates the vulnerable code path but reduces scripting performance by approximately 2-5x. For server operators, restrict mod installation privileges to trusted administrators only and implement mod code review processes, though these controls only reduce attack surface and do not eliminate the vulnerability. Review all installed mods for suspicious filesystem access patterns or unusual native library loading as potential indicators of exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Luanti (formerly Minetest) is an open-source voxel game engine written in C++ with a Lua scripting API for mods. The platform implements a sandbox to isolate mod code execution from the underlying system. This vulnerability (CWE-94: Improper Control of Generation of Code) exploits the 'getfenv' function in LuaJIT implementations to break sandbox boundaries. LuaJIT is a just-in-time compiler for Lua that provides performance optimizations but exposes unsafe primitives when not properly restricted. The affected CPE cpe:2.3:a:luanti-org:luanti includes all versions from 5.0.0 to 5.15.1. The flaw exists across multiple Lua execution contexts: server-side mods (which run on game servers), asynchronous/mapgen environments (used for world generation), and client-side mods (CSM, which execute on player devices). The root cause is insufficient neutralization of the 'getfenv' function, which allows access to function environments outside the sandbox, enabling arbitrary native code execution through LuaJIT's FFI capabilities.
Know when Luanti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)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
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
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).
Executive ViewAI
Luanti versions 5.0.0 through 5.15.1 contain a critical remote code execution vulnerability allowing authenticated users with low privileges to escape sandbox protections and execute arbitrary code on affected systems. Organizations deploying Luanti game servers or clients with LuaJIT enabled face immediate risk of full system compromise through malicious mod installation. This vulnerability requires user authentication but can lead to complete loss of confidentiality, integrity, and availability of affected infrastructure.
Vendor-released patch: Luanti 5.15.2. Until patching is complete: (1) Disable LuaJIT engine if operationally feasible; (2) Restrict mod installation privileges to administrators only; (3) Implement network segmentation to isolate Luanti servers; (4) Monitor process execution and filesystem access from Luanti processes for anomalous behavior.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Lua sandbox escape in Luanti 5.x (formerly Minetest) game engine allows malicious mod code to break out of LuaJIT securi
Logic error in Luanti 5 (formerly Minetest) game engine before 5.15.2 allows malicious mods to gain unauthorized access
EUVD-2026-25154
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB