CVE-2022-42535 SQL injection in Android
A SQL injection vulnerability in Android's MmsSmsProvider allows local attackers to access restricted tables and disclose information.
- 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-42535?
CVE-2022-42535 is a medium-severity SQL injection vulnerability in Google Android, published on 16 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In a query in MmsSmsProvider.java, there is a possible access to restricted tables due to SQL injection. This could lead to local information disclosure with User execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android-13Android ID: A-224770183
Weakness: CWE-89
Which versions are affected by CVE-2022-42535?
It affects 1 product.
Products include Google Android.
How do I fix CVE-2022-42535?
Apply the vendor's patch.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2022-42535 being exploited?
There is no known exploitation of CVE-2022-42535 in the wild and no public exploit code.
Other vulnerabilities in Google Android
Sources
Also known as A-224770183, GHSA-45qq-chvf-7cwf, PUB-A-224770183.