VDB

CVE-2024-1724

CVE-2024-1724 PUBLISHED CVSS 6.3 MEDIUM

snapd allows $HOME/bin symlink

Reported by canonical · Published July 25, 2024

github.com/snapcore/snapd is fixed in 2.62 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/snapcore/snapdGo Modules2.62
snapdcanonical2.62

Risk scores

CVSS 3.1
6.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

Affected products

VendorProductVersions
Canonicalsnap0
canonicalsnapd0
Canonicalsnap0
github.comsnapcore/snapd0

Timeline

  • Jul 2, 2024 PoC Published (4 in total, the first dated here)
  • Jul 25, 2024 CVE Published
  • Jul 26, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (5 in total, the first dated here)
  • Jun 17, 2026 CVE Updated
  • Aug 10, 2026 Distribution Patch (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-1724
vulnetix vdb fixes CVE-2024-1724

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-1724/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›