# CVE-2022-35978: Lua sandbox escape from mod in Minetest

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.08%, higher than 88% of CVEs (2026-12-01)
- Published: 2022-08-15T19:05:11.000Z
- Modified: 2026-06-17T04:52:38.503Z
- Weaknesses: CWE-693
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- minetest minetest: <= 5.5.1; before 5.6.0

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:L`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/minetest/minetest/security/advisories/GHSA-663q-pcjw-27cc> (third-party-advisory)
- <https://github.com/minetest/minetest/commit/da71e86633d0b27cd02d7aac9fdac625d141ca13> (patch, third-party-advisory)
- <https://dev.minetest.net/Changelog#5.5.0_.E2.86.92_5.6.0> (release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2022-35978](https://www.cve.org/CVERecord?id=CVE-2022-35978), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-35978](https://nvd.nist.gov/vuln/detail/CVE-2022-35978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-35978 · Whole record: https://cve.day/CVE-2022-35978.json · Rebuilt by cve.day 2026-11-25T22:58:14.203Z
