CVE-2022-35978: Lua sandbox escape from mod in Minetest
Minetest is a free open-source voxel game engine with easy modding and game creation. In single player, a mod can set a global setting that controls the Lua script loaded to display the main menu. The script is then loaded as soon as the game session is exited. The Lua environment the menu runs in is not sandboxed and can directly interfere with the user's system. There are currently no known workarounds.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/minetestto a version that resolves this vulnerability.Fixed in 5.6.1+dfsg+~1.9.0mt8+dfsg-2 - Upgrade
Upgrade
debian/minetestto a version that resolves this vulnerability.Fixed in 5.5.0+dfsg+~1.9.0mt4+dfsg-2
Event History
Frequently Asked Questions
What is CVE-2022-35978?
CVE-2022-35978 is a vulnerability in the Minetest game engine that allows a mod to set a global setting that controls the Lua script loaded to display the main menu, which could lead to remote code execution.
What is the severity of CVE-2022-35978?
CVE-2022-35978 has a severity rating of critical with a value of 10.
What software versions are affected by CVE-2022-35978?
Minetest versions up to and excluding 5.6.0 are affected by CVE-2022-35978.
How can I fix CVE-2022-35978?
Update Minetest to version 5.6.0 or later to mitigate CVE-2022-35978.
Where can I find more information about CVE-2022-35978?
You can find more information about CVE-2022-35978 in the Minetest changelog [1], the related GitHub commit [2], and the GitHub security advisory [3].