Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local file access
-
DeliveryDeploy malicious mod with interception hooks
-
ExploitTrigger server mod reload
-
ExecutionIntercept trusted mod environment during initialization
-
PersistExecute code with unrestricted API access
-
ImpactExfiltrate data or establish persistence
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Always-incorrect control flow
|
| Exploitation Conditions | Exploitation requires two specific conditions: (1) at least one mod must be explicitly listed in the server's secure.trusted_mods or secure.http_mods configuration settings, which creates the privileged environment that can be intercepted, and (2) the attacker must have local file system write access to install a malicious mod into the Luanti mods directory before server startup or during mod reload. Exploitation is limited to deployments that both enable trusted mod features AND allow untrusted parties to add mods - primarily public multiplayer servers with user-contributed mod repositories or shared hosting environments. Single-user installations where only the owner manages mods face negligible risk. Servers that accept no mods from untrusted sources (curated mod lists only) or that disable secure.trusted_mods/secure.http_mods entirely are not vulnerable. The AC:H rating reflects implementation complexity: the malicious mod must precisely time or sequence its initialization to intercept the environment handle during the loading process. |
| Impact | Real-world risk depends heavily on deployment context. CVSS 8.1 with AV:L (local attack vector) means the attacker must already have local file system access to install the malicious mod - this is NOT a remote network exploit. AC:H (high attack complexity) reflects the precise timing or naming requirements to win the environment interception race. PR:N (no privileges required) is somewhat misleading in context: while no OS-level authentication is needed, the attacker must have permission to add mods to the Luanti installation, which typically requires file system write access. S:C (scope change) is appropriate because escaping mod sandbox restrictions allows impacts beyond the mod's intended isolation boundary. The critical concern is multi-tenant or public Luanti servers where untrusted users can upload mods - in those environments, this enables sandbox escape and potential server compromise. Single-user installations or carefully curated mod repositories face minimal risk. No EPSS score provided but absence from CISA KEV and lack of public exploit code suggests limited observed exploitation despite the high CVSS score. SSVC assessment: Exploitation status is POC (proof-of-concept logic is understood from description), Automatable is NO (requires server operator to install the malicious mod), Technical Impact is TOTAL (complete sandbox escape). Priority depends on whether your deployment accepts untrusted mods. |
| Exploit ScenarioDerived | An attacker with local access to a Luanti multiplayer server creates a malicious mod with carefully chosen initialization hooks and naming to execute during the mod loading phase. When the server administrator has configured legitimate mods in secure.trusted_mods to enable HTTP API access for content updates, the malicious mod intercepts the environment assignment. The crafted mod now possesses unrestricted HTTP capabilities and insecure Lua environment access, allowing it to exfiltrate server configuration data, modify game state arbitrarily, or establish command-and-control connections. No public exploit code exists, but the logic flaw description provides sufficient detail for a capable attacker to develop working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 16, 2026
Logic error in Luanti 5 (formerly Minetest) game engine before 5.15.2 allows malicious mods to gain unauthorized access to security-restricted APIs by intercepting mod environment setup. When any mod is designated as trusted (via secure.trusted_mods or secure.http_mods), a specially crafted mod can exploit the environment initialization sequence to receive the insecure environment or HTTP API access intended only for trusted mods. CVSS 8.1 reflects local attack vector with high complexity but no authentication required and scope change with high confidentiality/integrity/availability impact. GitHub security advisory and two fix commits confirm patch availability. No CISA KEV listing or public exploit code identified at time of analysis.
Earlier versions of this analysis (1)
Crafted mods in Luanti 5.x through 5.15.1 can intercept and gain unauthorized access to the insecure environment and HTTP API when any mod is configured in secure.trusted_mods or secure.http_mods. This privilege escalation allows malicious mods to bypass sandbox restrictions and execute arbitrary code with elevated privileges. CVSS 8.1 with scope change indicates breakout from the mod security boundary. No active exploitation (CISA KEV) or public POC identified at time of analysis, though patches are available via GitHub commits.
RemediationAI
Upgrade to Luanti 5.15.2 or later, which contains fixes in commits 0faf529bc4b89e70a275ed1162047815118f2413 and 827fd4cf7f989482b2dad381fa4afd642ea73e8c that correct the mod environment initialization logic. The patches enforce proper access control during environment provisioning to prevent interception by untrusted mods. For environments unable to upgrade immediately, remove all entries from secure.trusted_mods and secure.http_mods configurations to eliminate the trigger condition - this disables HTTP API and insecure environment access for all mods, effectively closing the attack vector but breaking functionality of mods that legitimately require those capabilities. Alternatively, implement strict mod vetting procedures: only install mods from verified sources, review mod code before deployment, and disable user-uploaded mods on public servers. Note that disabling trusted mod features may break existing gameplay mechanics that depend on HTTP lookups or file operations. Advisory and technical details: https://github.com/luanti-org/luanti/security/advisories/GHSA-22c4-238c-m5j4
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 (CVE-2026-40960 affects cpe:2.3:a:luanti:luanti) is an open-source voxel game engine supporting user-created modifications (mods) with restricted and unrestricted API environments. The secure.trusted_mods and secure.http_mods configuration settings designate which mods may access privileged APIs like HTTP networking or file system operations. CWE-670 (Always-Incorrect Control Flow Implementation) indicates a logic flaw in the mod initialization sequence. The vulnerability manifests during environment provisioning: when the engine iterates through loaded mods to assign API access, a maliciously-named or sequenced mod can position itself to receive the privileged environment handle before or instead of the legitimately trusted mod. This breaks the security model that assumes only explicitly trusted mods can access dangerous capabilities like arbitrary HTTP requests or unrestricted Lua functions.
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
AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
Luanti 5 before 5.15.2 sometimes allows unintended access to an insecure environment. If at least one mod is listed as secure.trusted_mods or secure.http_mods, then a crafted mod can intercept the request for the insecure environment or HTTP API, and also receive access to it.
Executive ViewAI
Luanti 5 game engine versions before 5.15.2 contain a logic error that allows malicious mods to bypass security controls and gain unauthorized access to restricted APIs, potentially compromising game servers and user data through compromised mod distribution. Organizations deploying Luanti for gaming, educational, or enterprise environments should prioritize patching to prevent unauthorized access to HTTP APIs and sensitive game functions by untrusted code.
Apply vendor patch. If immediate patching is not possible: (1) Temporarily disable untrusted community mods and use only internally-vetted mods; (2) Restrict network access for Luanti server processes to minimize HTTP API exposure; (3) Disable HTTP API functionality if not required; (4) Implement code review for all mods before marking as trusted.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Lua sandbox escape in Luanti 5.x (formerly Minetest) game engine allows malicious mod code to break out of LuaJIT securi
Remote code execution in Luanti 5.0.0 through 5.15.1 allows authenticated attackers to escape the Lua sandbox via malici
EUVD-2026-23151
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB