CVE-2020-8903: Google Cloud OS Login - Privilege Escalation
- Cve: CVE-2020-8903
- Name: Google Cloud OS Login - Privilege Escalation
- 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.
- Impact: Attackers can escalate privileges to root, potentially leading to full control over the affected instance.
- Remediation: Update to versions after 20200507 or remove 'adm' user from the OS Login entry in /etc/group/security.conf.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs 'adm' group membership and journal access
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00315
- Epss percentile: 0.24885
- Assignee: [email protected]
- Published at: 2020-06-22T14:15:11Z
- Age in days: 2346
- Modified at: 2026-06-17T03:27:09Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-8903
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-276 | Incorrect Default Permissions |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://gitlab.com/gitlab-com/gl-security/gl-redteam/red-team-tech-notes/-/tree/master/oslogin-privesc-june-2020 | nvd | 2020-06-22 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/GoogleCloudPlatform/guest-oslogin/pull/29 | Patch, Third Party Advisory |
| https://cloud.google.com/support/bulletins/#gcp-2020-008 | Vendor Advisory |
| https://gitlab.com/gitlab-com/gl-security/gl-redteam/red-team-tech-notes/-/tree/master/oslogin-privesc-june-2020 | Exploit, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00037.html | Mailing List, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00047.html | Mailing List, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| google:guest-oslogin | >= 20190304.00, <= 20200507.00 | no | nvd | /v1/products/google/guest-oslogin |
| opensuse:leap | = 15.2, = 15.1 | no | nvd | /v1/products/opensuse/leap |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| googlecloudplatform/guest-oslogin | pull | yes | /v1/repositories/googlecloudplatform/guest-oslogin |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2020-06-22
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts