CVE-2022-20395 Path traversal in Android

High 7.8 Published Updated

A path traversal flaw in Android's MediaProvider allows local attackers to delete files and escalate privileges 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-2022-20395?

CVE-2022-20395 is a high-severity path traversal vulnerability in Google Android, published on 13 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In checkAccess of MediaProvider.java, there is a possible file deletion due to a path traversal error. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-11 Android-12 Android-12L Android-13Android ID: A-221855295

Weakness: CWE-22

Which versions are affected by CVE-2022-20395?

It affects 1 product.

Products include Google Android.

How do I fix CVE-2022-20395?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-20395 being exploited?

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

All Google Android vulnerabilities

Sources

Also known as A-221855295, ASB-A-221855295, GHSA-pcpv-9vhw-96hp.

Is CVE-2022-20395 in your software?

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

Check your SBOMs for free