CVE-2021-0306 Privilege escalation in Android

High 7.8 Published Updated

An attacker can bypass user confirmation to gain activity recognition permissions during Android version upgrades, leading to local privilege escalation.

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-0306?

CVE-2021-0306 is a high-severity vulnerability in Google Android, published on 11 Jan 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In addAllPermissions of PermissionManagerService.java, there is a possible permissions bypass when upgrading major Android versions which allows an app to gain the android.permission.ACTIVITY_RECOGNITION permission without user confirmation. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-11, Android-8.0, Android-8.1, Android-9, Android-10; Android ID: A-154505240.

Weakness: CWE-269

Which versions are affected by CVE-2021-0306?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2021-0306?

Apply the vendor's patch.

Is CVE-2021-0306 being exploited?

There is no known exploitation of CVE-2021-0306 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-154505240, ASB-A-154505240, GHSA-9hcw-xp2g-53qq.

Is CVE-2021-0306 in your software?

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

Check your SBOMs for free