CVE-2026-41196: CWE-94: Improper Control of Generation of Code ('Code Injection') in luanti-org luanti
CVE-2026-41196 is a critical code injection vulnerability in luanti (formerly Minetest) versions 5. 0. 0 up to but not including 5. 15. 2. A malicious mod can escape the sandboxed Lua environment to execute arbitrary code and gain full filesystem access on the user's device. This affects server-side mods, async, mapgen, and client-side mod environments when LuaJIT is used. The vulnerability is patched in version 5. 15. 2.
AI Analysis
Technical Summary
Luanti versions from 5.0.0 to before 5.15.2 contain a vulnerability (CWE-94) that allows malicious Lua mods to escape sandbox restrictions and execute arbitrary code with full filesystem access. This applies to both server-side and client-side mod environments when LuaJIT is enabled. The issue is resolved in version 5.15.2. Alternatively, users can mitigate the vulnerability without recompilation by adding 'getfenv = nil' to builtin/init.lua, which disables a function that enables the exploit but may impact legitimate mods.
Potential Impact
Exploitation allows a malicious mod to break out of the Lua sandbox and execute arbitrary code on the host system, resulting in full filesystem access. This can lead to complete compromise of the affected device running luanti versions prior to 5.15.2 when LuaJIT is used. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade to luanti version 5.15.2 or later, which contains an official patch for this vulnerability. If upgrading is not immediately possible, apply the manual mitigation by editing builtin/init.lua to add the line 'getfenv = nil' at the end, understanding this may break some mods that rely on this function. No other vendor advisories or patches are provided, so check the official luanti project for updates.
CVE-2026-41196: CWE-94: Improper Control of Generation of Code ('Code Injection') in luanti-org luanti
Description
CVE-2026-41196 is a critical code injection vulnerability in luanti (formerly Minetest) versions 5. 0. 0 up to but not including 5. 15. 2. A malicious mod can escape the sandboxed Lua environment to execute arbitrary code and gain full filesystem access on the user's device. This affects server-side mods, async, mapgen, and client-side mod environments when LuaJIT is used. The vulnerability is patched in version 5. 15. 2.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Luanti versions from 5.0.0 to before 5.15.2 contain a vulnerability (CWE-94) that allows malicious Lua mods to escape sandbox restrictions and execute arbitrary code with full filesystem access. This applies to both server-side and client-side mod environments when LuaJIT is enabled. The issue is resolved in version 5.15.2. Alternatively, users can mitigate the vulnerability without recompilation by adding 'getfenv = nil' to builtin/init.lua, which disables a function that enables the exploit but may impact legitimate mods.
Potential Impact
Exploitation allows a malicious mod to break out of the Lua sandbox and execute arbitrary code on the host system, resulting in full filesystem access. This can lead to complete compromise of the affected device running luanti versions prior to 5.15.2 when LuaJIT is used. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade to luanti version 5.15.2 or later, which contains an official patch for this vulnerability. If upgrading is not immediately possible, apply the manual mitigation by editing builtin/init.lua to add the line 'getfenv = nil' at the end, understanding this may break some mods that rely on this function. No other vendor advisories or patches are provided, so check the official luanti project for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-18T02:51:52.973Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e9707c87115cfb68522134
Added to database: 4/23/2026, 1:06:04 AM
Last enriched: 4/23/2026, 1:22:00 AM
Last updated: 4/23/2026, 7:12:09 AM
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.