Incorrect default permissions in Snapd - CVE-2021-3155
Published: May 25, 2022
Vulnerability identifier: #VU63646
CSH Severity: Low
CVSS v4: 4.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3155
CWE-ID: CWE-276
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to gain access to sensitive information.
The vulnerability exists due to snapd creates "~/snap" directories in user home directories without specifying owner-only permissions. A local user can gain access to potentially sensitive information.
Affected software
Snapd
Ubuntu
snap-confine (Ubuntu package)
snapd (Ubuntu package)
Ubuntu
snap-confine (Ubuntu package)
snapd (Ubuntu package)
How to mitigate CVE-2021-3155
Install updates from vendor's website.
Snapd - update to 2.54.3
snap-confine (Ubuntu package) - addressed in versions 2.54.3+16.04~esm2, 2.54.3+18.04, 2.54.3+18.04.2ubuntu0.2, 2.54.3+20.04, 2.54.3+20.04.1, 2.54.3+20.04.1ubuntu0.2, 2.54.3+21.10.1, 2.54.3+21.10.1ubuntu0.2
snapd (Ubuntu package) - addressed in versions 2.54.3+16.04~esm2, 2.54.3+18.04, 2.54.3+18.04.2ubuntu0.2, 2.54.3+20.04, 2.54.3+20.04.1, 2.54.3+20.04.1ubuntu0.2, 2.54.3+21.10.1, 2.54.3+21.10.1ubuntu0.2
snap-confine (Ubuntu package) - addressed in versions 2.54.3+16.04~esm2, 2.54.3+18.04, 2.54.3+18.04.2ubuntu0.2, 2.54.3+20.04, 2.54.3+20.04.1, 2.54.3+20.04.1ubuntu0.2, 2.54.3+21.10.1, 2.54.3+21.10.1ubuntu0.2
snapd (Ubuntu package) - addressed in versions 2.54.3+16.04~esm2, 2.54.3+18.04, 2.54.3+18.04.2ubuntu0.2, 2.54.3+20.04, 2.54.3+20.04.1, 2.54.3+20.04.1ubuntu0.2, 2.54.3+21.10.1, 2.54.3+21.10.1ubuntu0.2