Lucene search

K
osvGoogleOSV:GHSA-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
Google
osv.dev
6
snapd
vulnerability
restriction
$home/bin
ubuntu
apparmor
enforcement
sandbox
permissions
path
attacker
malicious
snap
'home' plug
arbitrary scripts
confinement
escape

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

6.8

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.

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

6.8

Confidence

Low

EPSS

0.001

Percentile

20.8%