Root escalation via metadata server impersonation
Published Jun 22, 2020 · Updated Aug 4, 2024
Privilege escalation in Google OS Login Guest Environment 20190304 through 20200506 allows local users with OS Login access to gain root. Default OS Login configuration adds non-admin users to adm, exposing the DHCP XID in the systemd journal; the XID enables hostname changes that redirect metadata.google.internal to an impersonated metadata server. The attacker needs roles/compute.osLogin on a VM with OS Login enabled, and a forged adminLogin response causes pam_oslogin_admin.so to grant sudo privileges.
Summary
What happened
Privilege escalation in Google OS Login Guest Environment 20190304 through 20200506 allows local users with OS Login access to gain root. Default OS Login configuration adds non-admin users to adm, exposing the DHCP XID in the systemd journal; the XID enables hostname changes that redirect metadata.google.internal to an impersonated metadata server. The attacker needs roles/compute.osLogin on a VM with OS Login enabled, and a forged adminLogin response causes pam_oslogin_admin.so to grant sudo privileges.
The record
- CVE
- CVE-2020-8903
- Published
- Jun 22, 2020
- Updated
- Aug 4, 2024
- Vendor
- Product
- OS Login Guest Environment
- Classifications
- CWE-276, T1548.003
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jun 22, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=20190304 <20200507
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- OS Login privilege-escalation proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo