CVE-2021-20264 Privilege escalation in containers/openjdk

High 7.8 Published Updated

An attacker with container access can modify /etc/passwd to escalate privileges due to insecure file permissions in OpenJDK containers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-20264?

CVE-2021-20264 is a high-severity vulnerability in Oracle Openjdk, published on 6 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An insecure modification flaw in the /etc/passwd file was found in the openjdk-1.8 and openjdk-11 containers. This flaw allows an attacker with access to the container to modify the /etc/passwd and escalate their privileges. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Weakness: CWE-732, CWE-266

Which versions are affected by CVE-2021-20264?

It affects 1 product.

Products include Oracle Openjdk.

How do I fix CVE-2021-20264?

No fix has been published for CVE-2021-20264 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-20264 being exploited?

There is no known exploitation of CVE-2021-20264 in the wild and no public exploit code.

All Oracle Openjdk vulnerabilities

Sources

Also known as GHSA-gx4p-prhw-c28v.

Is CVE-2021-20264 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free