Skip to content

Sandbox escape by writable mod directories

High
sfan5 published GHSA-44f7-f48m-vxcw Aug 12, 2024

Package

Minetest

Affected versions

>= 5.0.0

Patched versions

>= 5.9.0

Description

Impact

Minetest has a sandbox that protects the system from buggy and malicious mods. Sometimes mods need to do things that aren't allowed by the sandbox (such as opening a network socket), and so Minetest has a mechanism where a user can "trust" a mod and that mod can access the unsandboxed Lua environment.

In Minetest 5.8.0 and below, if there is at least one trusted mod then an untrusted mod can gain access to the unsandboxed Lua environment. The untrusted mod can do this using an exploit to overwrite the trusted mod's files, or by changing its mod id to override the trusted mod.

Patches

b487341

Workarounds

If feasible, disable access to the insecure environment for all mods by clearing the secure.trusted_mods setting.

References

#14486

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CVE ID

No known CVE

Weaknesses

No CWEs

Credits