{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-35978 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-35978 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-35978 in the wild and no public exploit code.\n\nAffected product: minetest. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-35978/ (Markdown: https://insights.sbomify.com/CVE-2022-35978/index.md)","id":"CVE-2022-35978","markdown":"https://insights.sbomify.com/CVE-2022-35978/index.md","name":"CVE-2022-35978","record":{"aliases":["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","openSUSE-SU-2025:14825-1"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Minetest game engine","requires_auth":"low_privilege","summary":"A malicious mod in Minetest can escape the Lua sandbox to execute arbitrary code on the user's system.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"minetest","vendor":"minetest"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"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.","ecosystems":["SUSE:Package Hub 15 SP3","SUSE:Package Hub 15 SP4","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-02-27","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-02-27T04:40:12Z","kind":"github_poc","ref":"https://github.com/CanVo/CVE-2022-35978-POC","stars":0,"title":"Proof of concept created for CVE-2022-35978 for educational purposes only."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Lua sandbox escape from mod in Minetest","id":"CVE-2022-35978","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"Segfault in `QuantizedRelu` and `QuantizedRelu6`","id":"CVE-2022-35979"},"packages":[{"ecosystem":"SUSE:Package Hub 15 SP3","fixed":["5.6.0-bp154.2.3.5"],"introduced":["0"],"last_affected":[],"package":"minetest","purl":"pkg:rpm/suse/minetest\u0026distro=SUSE%20Package%20Hub%2015%20SP3","source":"openSUSE-SU-2023:0001-1"},{"ecosystem":"SUSE:Package Hub 15 SP4","fixed":["5.6.0-bp154.2.3.5"],"introduced":["0"],"last_affected":[],"package":"minetest","purl":"pkg:rpm/suse/minetest\u0026distro=SUSE%20Package%20Hub%2015%20SP4","source":"openSUSE-SU-2023:0001-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["5.6.0-bp154.2.3.5"],"introduced":["0"],"last_affected":[],"package":"minetest","purl":"pkg:rpm/opensuse/minetest\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2023:0001-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["5.6.0-bp154.2.3.5"],"introduced":["0"],"last_affected":[],"package":"minetest","purl":"pkg:rpm/opensuse/minetest\u0026distro=openSUSE%20Leap%2015.4","source":"openSUSE-SU-2023:0001-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.11.0-1.1"],"introduced":["0"],"last_affected":[],"package":"luanti","purl":"pkg:rpm/opensuse/luanti\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14825-1"}],"prev":{"headline":"Integer overflow in certain command arguments can drive Redis to OOM panic","id":"CVE-2022-35977"},"products":["minetest"],"published":"2022-08-15","related":[{"cvss_score":9,"headline":"Luanti has a mod security sandbox escape","id":"CVE-2026-41196","kev_date_added":null,"published":"2026-04-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["minetest"]},"summary":"A malicious mod in Minetest can escape the Lua sandbox to execute arbitrary code on the user's system.","url":"https://insights.sbomify.com/CVE-2022-35978/"}