Skip to main content

Luanti CVE-2026-40959

| EUVDEUVD-2026-23149 CRITICAL
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2026-04-16 mitre
9.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Distribute malicious mod via community channels
  2. Delivery
    User installs mod in Luanti
  3. Exploit
    Game loads mod on startup
  4. Install
    Crafted Lua code triggers LuaJIT sandbox escape
  5. C2
    Execute arbitrary code as game process user
  6. Execute
    Access host filesystem and system resources
  7. Impact
    Establish persistence or exfiltrate data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
Exploitation Conditions

Requires Luanti compiled with LuaJIT scripting backend rather than standard Lua interpreter - builds using standard Lua are not vulnerable. Target user must install and load a malicious mod containing the crafted sandbox escape code. Exploitation is automatic once the mod loads (UI:N), requiring no further user interaction beyond the initial mod installation and game/world launch. The local attack vector (AV:L) means attackers cannot exploit this remotely over the network - they must deliver the malicious mod through social engineering (mod repositories, forums, direct file sharing) or supply-chain compromise (trojanized legitimate mods). No authentication required (PR:N) indicates the vulnerability is exploitable in default Luanti configurations without needing special privileges or non-standard settings. Exploitation is NOT limited by: operating system (affects all platforms running LuaJIT builds), multiplayer vs singleplayer mode, or specific game configuration settings. The low attack complexity (AC:L) confirms no race conditions, cryptographic timing, or complex setup is needed.

Impact

Real-world risk is moderate to high depending on deployment context. The CVSS 9.3 score reflects maximum potential impact (complete confidentiality, integrity, and availability compromise with scope change), but the local attack vector (AV:L) significantly constrains exploitation scenarios. Users must install and load a malicious mod, limiting this to social engineering or supply-chain attack vectors rather than remote network exploitation. The 'No privileges required' (PR:N) rating means attackers don't need pre-existing system access - merely the ability to convince users to install crafted mods through game mod repositories, forums, or content sharing platforms. No user interaction (UI:N) is required once the mod loads, meaning exploitation is automatic. EPSS score unavailable limits quantitative exploitation probability assessment. Not listed in CISA KEV, indicating no confirmed widespread active exploitation. However, the gaming community's mod-sharing culture and limited security vetting of community-created content creates realistic attack surface. Affected products are clearly scoped: Luanti 5.0.0 through 5.15.1 when compiled with LuaJIT (not standard Lua). The two-commit fix from vendor GitHub security advisory confirms the vulnerability is real and technically substantiated. Primary risk populations: multiplayer server operators running untrusted mods, content creators testing community mods, and users of mod aggregation platforms. Organizations running Luanti servers should prioritize this based on whether they use LuaJIT builds and accept third-party mod content.

Exploit ScenarioDerived

Attacker creates a seemingly legitimate Luanti mod (e.g., new biome pack, texture enhancement, or gameplay feature) and publishes it to community mod repositories or forums. User downloads and installs the mod through Luanti's mod management interface. Upon game launch or world load, the mod's crafted Lua code automatically triggers the LuaJIT sandbox escape without any additional user interaction. Malicious code executes with the privileges of the Luanti process, gaining full read/write access to user files, ability to execute arbitrary system commands, install persistence mechanisms, or pivot to network-based attacks if the host has network access. The scope change in CVSS indicates the attacker escapes the intended mod sandbox boundary to compromise the underlying system.

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

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

Alert me

AnalysisAIv3 – Apr 16, 2026

Lua sandbox escape in Luanti 5.x (formerly Minetest) game engine allows malicious mod code to break out of LuaJIT security restrictions and execute arbitrary code on the host system. Affects all Luanti 5.0.0 through 5.15.1 when compiled with LuaJIT instead of standard Lua. Attackers with ability to distribute crafted mods can achieve complete system compromise with scope change (S:C in CVSS), escalating from sandboxed mod execution to full host access. No authentication required but local access needed (AV:L). Patch available in version 5.15.2 via two upstream commits. EPSS data not available; no confirmed active exploitation or public POC at time of analysis.

Earlier versions of this analysis (2)
v2 Apr 16, 2026 - 01:42 cvss changed CVSS 9.3

Lua sandbox escape in Luanti game engine 5.x through 5.15.1 allows malicious mods to execute arbitrary code outside the sandbox when LuaJIT is enabled. Affects the open-source voxel game engine (formerly Minetest) in configurations using LuaJIT instead of standard Lua. Remote attackers can distribute weaponized mods through community repositories or social engineering, achieving complete system compromise with scope change to underlying host (CVSS S:C). EPSS data not available; no evidence of active exploitation (not in CISA KEV), but proof-of-concept fixes in GitHub commits indicate vulnerability mechanism is understood.

v1 Apr 16, 2026 - 01:19 CVSS 9.3

Lua sandbox escape in Luanti 5.x before 5.15.2 allows complete host system compromise when LuaJIT is enabled. Malicious mods can break out of the game's scripting sandbox to execute arbitrary code with full user privileges on Windows, macOS, and Linux. Attack requires local access to install a crafted mod but no authentication (CVSS PR:N), enabling complete confidentiality, integrity, and availability breaches with scope change to underlying system (CVSS S:C). No active exploitation confirmed at time of analysis, but GitHub security advisory and two upstream commits indicate vendor-coordinated disclosure.

RemediationAI

Upgrade to Luanti 5.15.2 or later, which contains the complete fix implemented in commits 8a929dfb97aa08337f49ba1bb96a56d6557dc896 and 53cef183e2a85a4daff84ac1a9a7946f940da8f8 available at https://github.com/luanti-org/luanti. If immediate upgrade is not feasible, recompile Luanti with standard Lua interpreter instead of LuaJIT - this eliminates the vulnerable code path entirely but may reduce mod execution performance by 2-5x depending on workload. For production multiplayer servers unable to upgrade immediately, implement strict mod vetting: only load mods from trusted sources with code review, disable automatic mod downloading, and run the game engine in a sandboxed environment (container, VM, or restricted user account) to limit blast radius of successful sandbox escape. Note that switching to standard Lua may break mods with LuaJIT-specific dependencies or performance assumptions. Operators of public servers accepting user-uploaded mods should treat this as a critical-priority patch due to the trivial social engineering path (malicious mod distribution).

Affected VersionsENISA

Luanti 5.0.0 <5.15.2

Affected Packages

euvd luanti 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 (previously known as Minetest) is an open-source voxel game engine written in C++ that uses Lua scripting for game logic and mod support. The engine supports both standard Lua and LuaJIT (Just-In-Time compiler variant) as scripting backends. LuaJIT provides performance benefits but has historically presented unique security challenges for sandboxing due to its FFI (Foreign Function Interface) capabilities and JIT compilation mechanisms. This vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) specifically affects the LuaJIT implementation's sandbox, which is designed to isolate mod code from the host operating system. The sandbox escape allows malicious Lua code within a mod to bypass security boundaries and access system-level functionality that should be restricted. The CVSS scope change (S:C) indicates the vulnerable component (LuaJIT sandbox) operates at a different privilege level than the impacted component (host system), confirming genuine privilege escalation beyond the intended mod execution context.

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

NVD PRIMARY 9.3 CRITICAL
AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
SUSE CRITICAL

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Patch released
Apr 17, 2026 - 15:38 nvd
Patch available
Analysis Updated
Apr 16, 2026 - 05:32 vuln.today
v3 - patch released
Patch available
Apr 16, 2026 - 05:29 EUVD
5.15.2
Analysis Updated
Apr 16, 2026 - 01:42 vuln.today
v2 - CVSS changed
CVE Published
Apr 16, 2026 - 00:51 nvd
CRITICAL 9.3

DescriptionCVE.org

Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod.

Executive ViewAI

Why It Matters

Luanti 5.x game engine versions through 5.15.1 contain a critical sandbox escape vulnerability in LuaJIT that allows malicious mods to execute arbitrary code on host systems with full privileges. Organizations running game servers, creative platforms, or applications built on Luanti face complete system compromise if users install untrusted mods, requiring immediate patching across all affected deployments.

Business Impact: Severe
Compensating Controls

Vendor-released patch: version 5.15.2. Until patching is complete: restrict mod installation to administrator-curated lists only, disable user mod uploads, run Luanti in isolated containers with minimal host filesystem access, and monitor process execution for unexpected child processes or system calls from game engine instances.

Threat Intelligence Overview

EPSS Score
0.0%
Top 100% exploitable
Social Media
1
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.0%
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
Small
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Critical

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