CVE-2020-8903

Public Exploit
Priviged Escalation in Google Cloud Platform's Guest-OSLogin

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.

Category

7.3
CVSS
Severity: High
CVSS 4.0 •
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.12%
Vendor Advisory opensuse.org Vendor Advisory opensuse.org Vendor Advisory google.com
Affected: Google LLC guest-oslogin
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2020-8903?
CVE-2020-8903 has been scored as a high severity vulnerability.
How to fix CVE-2020-8903?
To fix CVE-2020-8903, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-8903 being actively exploited in the wild?
It is possible that CVE-2020-8903 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-8903?
CVE-2020-8903 affects Google LLC guest-oslogin.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.