CVE-2026-40959 Details
Description
Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod.
A vulnerability in Luanti versions 5.0.0 prior to 5.15.2, when using LuaJIT, allows a crafted mod to escape a Lua sandbox. This escape can lead to the execution of arbitrary code and unrestricted access to the filesystem on the user's device. The issue affects both server-side and client-side environments.
Users can update to Luanti version 5.15.2 or newer to address this vulnerability. Alternatively, on release versions, the issue can be patched without recompiling by editing 'builtin/init.lua' to remove the 'getfenv' function, though this may break some mods that rely on it.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 16, 2026CISA-ADP
Assessed Apr 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/luanti-org/luanti/commit/53cef183e2a85a4daff84ac1a9a7946f940da8f8 | [email protected] | Source CodeVendor |
| https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896 | [email protected] | Source CodeVendor |
| https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Luanti | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | New CVE Received | [email protected] |
Volerion