Lucene search

K
githubGitHub Advisory DatabaseGHSA-4MH8-9689-38VR
HistoryJul 25, 2024 - 9:31 p.m.

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

2024-07-2521:31:20
CWE-732
GitHub Advisory Database
github.com
3
snapd
ubuntu
apparmor
sandbox permissions
vulnerability
path
confinement

CVSS3

8.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

AI Score

7.2

Confidence

Low

EPSS

0.001

Percentile

20.8%

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 configurations

Vulners
Node
canonicalsnapdRange<2.62
VendorProductVersionCPE
canonicalsnapd*cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*

CVSS3

8.2

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

AI Score

7.2

Confidence

Low

EPSS

0.001

Percentile

20.8%