CVE-2024-1724

NameCVE-2024-1724
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
snapd (PTS)stretch (security)2.21-2+deb9u1vulnerable
stretch (lts), stretch2.21-2+deb9u3vulnerable
buster (security), buster, buster (lts)2.37.4-1+deb10u3vulnerable
bullseye (security), bullseye2.49-1+deb11u2vulnerable
bookworm2.57.6-1vulnerable
trixie2.65.3-1fixed
sid2.66.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
snapdsourcestretch(unfixed)end-of-life
snapdsource(unstable)2.62-1

Notes

[bookworm] - snapd <no-dsa> (Minor issue)
[bullseye] - snapd <no-dsa> (Minor issue)
https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 (2.62)
https://github.com/snapcore/snapd/pull/13689
https://gld.mcphail.uk/posts/explaining-cve-2024-1724/
[buster] - snapd <postponed> (Minor issue)

Search for package or bug name: Reporting problems