# CVE-2020-8903: Priviged Escalation in Google Cloud Platform's Guest-OSLogin

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v4.0, CNA) `CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: None; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-276
- **Published:** 2020-06-22T13:45:25.000Z
- **Modified:** 2026-06-17T03:27:09.223Z

## Who should check

- Anyone running Google LLC guest-oslogin \>= 20190304, \< 20200507

## 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.

## Affected and fixed versions

- Google LLC guest-oslogin: \>= 20190304, \< 20200507 (cvelist)

## Mitigation

- Upgrade guest-oslogin to 20200507 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-8903. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-8903.md
Affected: Google LLC guest-oslogin >= 20190304, < 20200507
Fixed in: Google LLC guest-oslogin 20200507

Steps:
1. Search this machine and project for Google LLC guest-oslogin: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-8903 being exploited?

There is no confirmed exploitation: CVE-2020-8903 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-8903?

High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2020-8903?

Google LLC guest-oslogin \>= 20190304, \< 20200507.

### Is there a fix for CVE-2020-8903?

Yes. Fixed in Google LLC guest-oslogin 20200507. Upgrade guest-oslogin to 20200507 or later.

### How do I check if I'm affected by CVE-2020-8903?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://cloud.google.com/support/bulletins/#gcp-2020-008>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00037.html>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00047.html>
- patch: <https://github.com/GoogleCloudPlatform/guest-oslogin/pull/29>
- exploit: <https://gitlab.com/gitlab-com/gl-security/gl-redteam/red-team-tech-notes/-/tree/master/oslogin-privesc-june-2020>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-8903>

HTML: <https://flawdb.com/CVE-2020-8903> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-8903>
