CVE-2020-8907Priviged Escalation in Google Cloud Platform's Guest-OSLogin
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 "docker" group, an attacker with this role is able to run docker and mount the host OS. Within docker, it is possible to modify the host OS filesystem and modify /etc/groups to gain 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 "docker" user from the OS Login entry.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | gce-compute-image-packages | Fixed | 20190801-0ubuntu4.1 | UBUNTU-CVE-2020-8907 |
| Ubuntu 18.04 | gce-compute-image-packages | Fixed | 20190801-0ubuntu1~18.04.1 | UBUNTU-CVE-2020-8907 |
| Ubuntu 16.04 | gce-compute-image-packages | Fixed | 20190801-0ubuntu1~16.04.1 | UBUNTU-CVE-2020-8907 |
| Ubuntu 14.04 | gce-compute-image-packages | Fix pending | UBUNTU-CVE-2020-8907 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Google LLC guest-oslogin: affected: 20190304 to before 20200507, 20200507 not affected; fixed in
20200507
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00037.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00047.html (vendor-advisory)
References
- https://github.com/GoogleCloudPlatform/guest-oslogin/pull/29
- https://gitlab.com/gitlab-com/gl-security/gl-redteam/red-team-tech-notes/-/tree/master/oslogin-privesc-june-2020
- https://cloud.google.com/support/bulletins/#gcp-2020-008
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00037.html
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00047.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.