Advisory

GHSA-4mh8-9689-38vr

Also known as: CVE-2024-1724, GO-2024-3007

Summary

snapd failed to restrict writes to the $HOME/bin path

Details

In snapd versions prior to 2.62, when using AppArmor for enforcement of sandbox permissions, snapd failed to restrict writes to the $HOME/bin path. In Ubuntu, when this path exists, it is automatically added to the users PATH. An attacker who could convince a user to install a malicious snap which used the 'home' plug could use this vulnerability to install arbitrary scripts into the users PATH which may then be run by the user outside of the expected snap sandbox and hence allow them to escape confinement.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-07-25 21:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/snapcore/snapd

Go · All systems

Affected

  • introduced 0, fixed 2.62 (ecosystem)

Fixed versions

2.62

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences