CVE-2023-40111: Vulnerability in platform/frameworks/base - Start foreground activity from background via MediaSession#setMediaButtonReceiver

platform/frameworks/base Updated 02 Oct 2025

Summary

01/11/2023
Yes i
High
Not published

CVE-2023-40111: In setMediaButtonReceiver of MediaSessionRecord.java, there is a possible way to send a pending intent on behalf of system_server due to a confused deputy. Affects platform/frameworks/base across 2 version ranges.

>= 14:0, < 14:2023-11-01 >= 14-next:0, < 14-next:2023-11-01

Fixed in 14-next:2023-11-01. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The package platform/frameworks/base is a fundamental component of the Android ecosystem. It provides core functionalities and services for the Android operating system. One of its features is the MediaSession, which allows applications to interact with media playback controls. However, a vulnerability has been discovered in the MediaSession#setMediaButtonReceiver method, which can be exploited to start a foreground activity from the background without proper authorization.

Vulnerability Detail

The vulnerability in MediaSession#setMediaButtonReceiver allows an attacker to send a pending intent on behalf of system_server, leading to a confused deputy scenario. This can result in a local escalation of privilege, enabling the attacker to gain elevated privileges without requiring additional execution privileges. Exploitation of this vulnerability requires user interaction.

How To Fix

Minimum fixed version

14-next:2023-11-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability at this time.

Conclusion

The vulnerability in platform/frameworks/base, allowing the start of a foreground activity from the background via MediaSession#setMediaButtonReceiver, poses a significant risk of local privilege escalation. It is crucial to update the affected package to the patched version to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for platform/frameworks/base →

Share this vulnerability

FAQ

This vulnerability allows an attacker to escalate their privileges on an affected Android device, potentially gaining unauthorized access to sensitive data or performing malicious actions.

Yes, user interaction is needed for the vulnerability to be exploited.

No, the vulnerability was introduced in version 14:0 and fixed in version 14:2023-11-01.

No, this vulnerability can only be exploited locally on the affected device.

No, there is currently no known workaround for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/base.

How To Fix

Minimum fixed version

14-next:2023-11-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback