CVE-2022-35978 Lua sandbox escape from mod in Minetest
A malicious mod in Minetest can escape the Lua sandbox to execute arbitrary code on the user's system.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-35978?
CVE-2022-35978 is a high-severity code injection vulnerability in minetest, published on 15 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
Weakness: CWE-693
Which versions are affected by CVE-2022-35978?
It affects 1 product.
Linux distribution packages (5)
minetest SUSE:Package Hub 15 SP3 | All versions | 5.6.0-bp154.2.3.5 |
minetest SUSE:Package Hub 15 SP4 | All versions | 5.6.0-bp154.2.3.5 |
minetest openSUSE:Leap 15.3 | All versions | 5.6.0-bp154.2.3.5 |
minetest openSUSE:Leap 15.4 | All versions | 5.6.0-bp154.2.3.5 |
luanti openSUSE:Tumbleweed | All versions | 5.11.0-1.1 |
Products include Minetest Minetest.
How do I fix CVE-2022-35978?
Apply the vendor's patch.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2022-35978 being exploited?
There is no known exploitation of CVE-2022-35978 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in minetest
Sources
Also known as DEBIAN-CVE-2022-35978, GHSA-663q-pcjw-27cc, MGASA-2023-0005, UBUNTU-CVE-2022-35978, openSUSE-SU-2023:0001-1, openSUSE-SU-2024:12284-1 and 1 more.