CVE-2021-0358 Command injection in Android

Medium 6.7 Published Updated

Local attackers with system privileges can execute arbitrary commands in netdiag due to improper input validation, leading to privilege escalation.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-0358?

CVE-2021-0358 is a medium-severity command injection vulnerability in Google Android, published on 2 Feb 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In netdiag, there is a possible command injection due to improper input validation. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-10, Android-11; Patch ID: ALPS05442022.

Weakness: CWE-77

Which versions are affected by CVE-2021-0358?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2021-0358?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-0358 being exploited?

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

All Google Android vulnerabilities

Sources

Also known as GHSA-4fv7-37f3-c5j6.

Is CVE-2021-0358 in your software?

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

Check your SBOMs for free