GHSA-4mh8-9689-38vr

Suggest an improvement
Source
https://github.com/advisories/GHSA-4mh8-9689-38vr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-4mh8-9689-38vr/GHSA-4mh8-9689-38vr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4mh8-9689-38vr
Aliases
Published
2024-07-25T21:31:20Z
Modified
2024-08-07T15:10:52Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2024-07-25T19:15:09Z",
    "cwe_ids": [
        "CWE-732"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-07-26T21:34:22Z"
}
References

Affected packages

Go / github.com/snapcore/snapd

Package

Name
github.com/snapcore/snapd
View open source insights on deps.dev
Purl
pkg:golang/github.com/snapcore/snapd

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.62