Skip to content

SafetyNet attest / verifyWithRecaptcha trusts the caller-supplied package name

Low
mar-v-in published GHSA-phcc-cx4h-vmq3 Sep 29, 2026

Package

No package listed

Affected versions

<= 0.3.16

Patched versions

0.3.16.1, 0.3.17

Description

SafetyNetClientService uses a caller-controlled package name as the identity for the request, with no caller check of its own. That unverified packageName is written to SafetyNetDatabase before anything is sent over the network, and again when the (failing) request completes. verifyWithRecaptcha has the same pattern: it calls db.insertRecentRequestStart(..., packageName, ...) with the same unchecked package name, then reads the app's on-device APK file digest and signing-certificate digest to build the reCAPTCHA request parameters (as/ac/pk).

SafetyNetDatabase entries are read directly by microG's own Settings UI (under "Device attestation") to show,
per app, when it last called SafetyNet and with what result - driven entirely by the unchecked packageName column.

Impact

A zero-permission app can make microG's own Settings UI ("Device attestation") show that any other
installed app made a SafetyNet attest or verifyWithRecaptcha call, even though that
app never did. Since the SafetyNet Attestation backend is shut down, the call itself will fail (visible
in the UI as an error result), so this does not constitute an actual authentication bypass of the
SafetyNet service and does not let an attacker obtain a usable forged attestation.

Patches

Patch will be published as part of 0.3.16.1 and 0.3.17 releases.

Workarounds

Do not trust the request history in the "Device attestation" screen in microG's settings user interface. Or, alternative, disable "Allow device attestation" in microG settings.

Severity

Low

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

CVE ID

No known CVE

Weaknesses

No CWEs

Credits