Skip to content

CVE-2020-8903 Priviged Escalation in Google Cloud Platform's Guest-OSLogin

HighCVSS 7.3 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuCloud Platforms

Description

A vulnerability in Google Cloud Platform's guest-oslogin versions between 20190304 and 20200507 allows a user that is only granted the role "roles/compute.osLogin" to escalate privileges to root. Using their membership to the "adm" group, users with this role are able to read the DHCP XID from the systemd journal. Using the DHCP XID, it is then possible to set the IP address and hostname of the instance to any value, which is then stored in /etc/hosts. An attacker can then point metadata.google.internal to an arbitrary IP address and impersonate the GCE metadata server which make it is possible to instruct the OS Login PAM module to grant administrative privileges. All images created after 2020-May-07 (20200507) are fixed, and if you cannot update, we recommend you edit /etc/group/security.conf and remove the "adm" user from the OS Login entry.

Upgrade path

6 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/gce-compute-image-packages(Ubuntu 14.04) = 20160930-0ubuntu3~14.04.0; = 20160930-0ubuntu3~14.04.1; = 20160930-0ubuntu3~14.04.2; = 20160930-0ubuntu6~14.04.0 +14 more No fix listed No fix yet
Google guest-oslogin >= 20190304, < 20200507; >= 20190304.00, <= 20200507.00 20200507 Fixed
ubuntu/gce-compute-image-packages(Ubuntu 16.04) < 20190801-0ubuntu1~16.04.1; = 20160930-0ubuntu3~16.04.0; = 20160930-0ubuntu5~16.04.0; = 20160930-0ubuntu6~16.04.0 +15 more 20190801-0ubuntu1~16.04.1 Fixed
ubuntu/gce-compute-image-packages(Ubuntu 18.04) < 20190801-0ubuntu1~18.04.1; = 20171006+dfsg1-0ubuntu1; = 20171019+dfsg1-0ubuntu1; = 20171025+dfsg1-0ubuntu1 +10 more 20190801-0ubuntu1~18.04.1 Fixed
ubuntu/gce-compute-image-packages(Ubuntu 20.04) < 20190801-0ubuntu4.1; = 20190801-0ubuntu1; = 20190801-0ubuntu2; = 20190801-0ubuntu3 +1 more 20190801-0ubuntu4.1 Fixed
openSUSE leap = 15.1; = 15.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Google guest-oslogin >= 20190304.00, <= 20200507.00 No fix listed
openSUSE leap = 15.1 No fix listed
openSUSE leap = 15.2 No fix listed
Google guest-oslogin >= 20190304, < 20200507 20200507
ubuntu/gce-compute-image-packages(Ubuntu:14.04) All versions No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20160930-0ubuntu3~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20160930-0ubuntu3~14.04.1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20160930-0ubuntu3~14.04.2 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20160930-0ubuntu6~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20170426-0ubuntu2~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20170523-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20170622-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20170718-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20171019+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20171025+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20171129+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20180129+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20180510+dfsg1-0ubuntu3~14.04.3 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20180905+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20180905+dfsg1-0ubuntu1~14.04.1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20190124+dfsg1-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:14.04) = 20190315-0ubuntu1~14.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) < 20190801-0ubuntu1~16.04.1 20190801-0ubuntu1~16.04.1
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20160930-0ubuntu3~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20160930-0ubuntu5~16.04.0 No fix listed
Show 35 more
ProductAffected versionsFixed in
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20160930-0ubuntu6~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20170426-0ubuntu2~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20170523-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20170622-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20170718-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20171019+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20171025+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20171129+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20180129+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20180510+dfsg1-0ubuntu3~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20180510+dfsg1-0ubuntu3~16.04.1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20180905+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20180905+dfsg1-0ubuntu1~16.04.1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20190124+dfsg1-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20190522-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:16.04) = 20190801-0ubuntu1~16.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) < 20190801-0ubuntu1~18.04.1 20190801-0ubuntu1~18.04.1
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20171006+dfsg1-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20171019+dfsg1-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20171025+dfsg1-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20171129+dfsg1-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180129+dfsg1-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180129+dfsg1-0ubuntu2 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180129+dfsg1-0ubuntu3 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180510+dfsg1-0ubuntu4~18.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180510+dfsg1-0ubuntu4~18.04.1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20180905+dfsg1-0ubuntu1~18.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20190124+dfsg1-0ubuntu1~18.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20190522-0ubuntu1~18.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:18.04) = 20190801-0ubuntu1~18.04.0 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:20.04) < 20190801-0ubuntu4.1 20190801-0ubuntu4.1
ubuntu/gce-compute-image-packages(Ubuntu:20.04) = 20190801-0ubuntu1 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:20.04) = 20190801-0ubuntu2 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:20.04) = 20190801-0ubuntu3 No fix listed
ubuntu/gce-compute-image-packages(Ubuntu:20.04) = 20190801-0ubuntu4 No fix listed

References