CVE-2021-0511 Code injection in Android

High 7.8 Published Updated

Local attackers can inject bytecode into apps via improper input validation in Dex2oat, leading to privilege escalation without user interaction.

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

What is CVE-2021-0511?

CVE-2021-0511 is a high-severity code injection vulnerability in Google Android, published on 21 Jun 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In Dex2oat of dex2oat.cc, there is a possible way to inject bytecode into an app due to improper input validation. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-9 Android-10 Android-11Android ID: A-178055795

Weakness: CWE-20

Which versions are affected by CVE-2021-0511?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2021-0511?

Apply the vendor's patch.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-0511 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Google Android vulnerabilities

Sources

Also known as A-178055795, ASB-A-178055795, GHSA-mhw4-w4wq-p4wx.

Is CVE-2021-0511 in your software?

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

Check your SBOMs for free