Skip to main content

Luanti EUVDEUVD-2026-25154

| CVE-2026-41196 CRITICAL
Code Injection (CWE-94)
2026-04-23 GitHub_M
Critical
Disputed · 9.0 Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to Luanti server
  2. Delivery
    Upload malicious mod package
  3. Exploit
    Server loads mod at startup
  4. Install
    Mod invokes getfenv to escape sandbox
  5. C2
    Execute arbitrary native code via LuaJIT FFI
  6. Execute
    Access filesystem as process user
  7. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Luanti 5.0.0, < 5.15.2

Affected Packages

euvd luanti_5_0_0 fix: 5.15.2

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)
Vendor (GitHub_M) PRIMARY 9.0 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
SUSE 4.0 MEDIUM
Red Hat 8.2 HIGH

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

4
Patch released
Apr 24, 2026 - 14:50 nvd
Patch available
Patch available
Apr 23, 2026 - 06:16 EUVD
CVSS changed
Apr 23, 2026 - 02:35 NVD
9.0 (CRITICAL)
CVE Published
Apr 23, 2026 - 00:28 nvd
CRITICAL 9.0

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 79% exploitable
Social Media
2
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

Vendor StatusVendor

SUSE

Severity: Medium

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy