Safeguard
Vulnerability Analysis•

CVE-2023-21270: High Permission Retention Bug in Android

Android restorePermissionState can let an app keep permissions that should be revoked after an update. High severity, CVSS 7.8. Apply the 2023-08-05 patch.

Safeguard Security Team
3 min read

CVE-2023-21270 is a high severity flaw (CVSS 7.8) in the permission manager of Android. Incorrect permission flags are cleared during an app update, so an app can keep permissions that should be revoked. The August 2023 Android Security Bulletin fixes it at patch level 2023-08-05 or later.

What's affected

  • Android 12, 12L and 13, per the August 2023 bulletin (updated AOSP versions column). The record lists Android 12.0, 12.1 and 13.0.
  • The function named in the description is restorePermissionState in PermissionManagerServiceImpl.java, in the Framework component.
  • Fixed at security patch level 2023-08-05 or later, according to the bulletin.
  • Severity: CVSS 3.1 score 7.8 High, vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

How to check if you're exposed

Read the patch level of each device:

adb shell getprop ro.build.version.security_patch

A date of 2023-08-05 or later means the August 2023 fixes are present. Devices on Android 12, 12L or 13 with an earlier date are behind. On a handset, the same date appears under Settings, About phone, Android version. Mobile device management tools usually expose the field too.

What to do now

  1. Collect Android version and patch level for all managed devices.
  2. Flag Android 12, 12L and 13 devices with a patch level before 2023-08-05.
  3. Apply the vendor update that includes the August 2023 patch level or newer.
  4. Retire or isolate devices that cannot take updates.
  5. Review which apps hold sensitive permissions and remove apps you do not need.

Why it matters

The record lists two weaknesses, CWE-863 (Incorrect Authorization) and CWE-276 (Incorrect Default Permissions). The flaw is about permission state across an app update. When an update changes what an app may do, the system should clear permission flags correctly. Here the wrong flags are cleared, so an app can keep access that should have been revoked.

The description says it leads to local escalation of privilege and needs no user interaction. It is a quiet bug, with no crash and no prompt, which makes inventory and patch discipline the main defence. CISA has not listed this CVE in its Known Exploited Vulnerabilities catalog, according to the record we hold, and none of the pages we read said it is being exploited.

The practical lesson is to treat app updates as a security event. When your device policy allows apps to update silently, a flaw in how permissions are carried across the update affects every installed app at once, so keeping the operating system patched matters as much as keeping apps current.

Quick check

What does an app keep when this goes wrong?

Permissions that should be revoked, per the description. The advisory does not say which ones, so assume any permission could be affected.

Is the 2023-08-05 level the only fix level?

It is the level at which the bulletin says all of its issues are addressed. Any later patch level also includes it.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

We email you a link to confirm, and only then add you to the list. Unsubscribe in one click. Privacy

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.