Privilege escalationin Google guest-oslogin.
No public exploit found; not on exploited lists.
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 guest-oslogin to 20200507 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 12 Feb 2020CVE ID reserved by Google.
- 22 Jun 2020Published in the CVE List.
- 4 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Other guest-oslogin vulnerabilities
Same weakness: Incorrect default permissions
- github.com x_refsource_CONFIRM
- gitlab.com x_refsource_MISC
- cloud.google.com x_refsource_MISC
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
- lists.opensuse.org vendor-advisory, x_refsource_SUSE
Patchminder. CVE-2020-8903: Privilege escalation in Google guest-oslogin. https://patchminder.com/cve/cve-2020-8903/ (accessed 5 December 2026).