CVE-2026-40959: Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod
Affects luantiSource GCVE Database
Not known to be exploited · CVSS 9.3 Critical · fixed in 5.10.0+dfsg-5+deb13u1build0.25.10.1 : patch luanti as a priority.
Data as of 24 Nov 2026, 21:15 UTC
Contested
Critical score, yet low EPSS after six months- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.10.0+dfsg-5+deb13u1build0.25.10.1, 5.10.0+dfsg-5+deb13u1build0.26.04.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu luanti to 5.10.0+dfsg-5+deb13u1build0.25.10.1 (package) or 5.10.0+dfsg-5+deb13u1build0.26.04.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSluantipkg:deb/ubuntu/luanti?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10luantipkg:deb/ubuntu/luanti?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod.
References
- ubuntu.com/security/CVE-2026-40959 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-40959 (opens in a new tab)
- github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3 (opens in a new tab)
- github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896 (opens in a new tab)
- github.com/luanti-org/luanti/commit/53cef183e2a85a4daff84ac1a9a7946f940da8f8 (opens in a new tab)
- ubuntu.com/security/notices/USN-8366-1 (opens in a new tab)