Privilege escalation in Snapd - CVE-2019-7304

 

Privilege escalation in Snapd - CVE-2019-7304

Published: February 13, 2019 / Updated: July 29, 2021


Vulnerability identifier: #VU17656
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2019-7304
CWE-ID: CWE-264
Exploitation vector: Local access
Exploit availability: Public exploit is available
Vendor: snapcore
Affected software:
Snapd

Detailed vulnerability description

The vulnerability allows a local attacker to gain elevated privileges.

The weakness exists due to a bug in the snapd API when validation and parsing the remote socket address while performing access controls on its UNIX socket. A local attacker can access privileged socket APIs and obtain administrator privileges.

Note: the vulnerability has been dubbed as 'Dirty Sock'.

How to mitigate CVE-2019-7304

Update to version 2.37.1.

Sources