---
id: CVE-2024-1724
aliases:
  - GHSA-4mh8-9689-38vr
  - GO-2024-3007
title: snapd failed to restrict writes to the $HOME/bin path
summary: snapd failed to restrict writes to the $HOME/bin path
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L'
vendor: snapcore
product: github.com/snapcore/snapd
ecosystem: go
affected:
  - github.com/snapcore/snapd < 2.62
patched:
  - github.com/snapcore/snapd 2.62
published: '2024-07-25'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:16.240747968Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-4mh8-9689-38vr'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-1724'
  - url: 'https://github.com/snapcore/snapd/pull/13689'
  - url: >-
      https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6
  - url: 'https://github.com/snapcore/snapd'
  - url: 'https://gld.mcphail.uk/posts/explaining-cve-2024-1724'
  - url: 'https://pkg.go.dev/vuln/GO-2024-3007'
tags:
  - osv
  - go
epss: 0.00306
epssPercentile: 0.20705
ingestedAt: '2026-09-12T03:13:01.753Z'
---

## Overview

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.

## Affected packages

- `github.com/snapcore/snapd < 2.62`

## Remediation

Upgrade to a patched release:

- `github.com/snapcore/snapd 2.62`
