CVE-2025-22441: Android Framework RemoteViews Arbitrary Code Execution Vulnerability

platform/frameworks/base Updated 02 Oct 2025

Summary

01/08/2025
Yes i
High
Not published

CVE-2025-22441: In getContextForResourcesEnsuringCorrectCachedApkPaths of RemoteViews.java, there is a possible way to load arbitrary java code in a privileged context due to a confused deputy. Affects platform/frameworks/base across 4 version ranges.

>= 13:0, < 13:2025-08-01 >= 14:0, < 14:2025-08-01 >= 15:0, < 15:2025-08-01 >= 16-next:0, < 16-next:2025-08-01

Fixed in 16-next:2025-08-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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Android Framework's 'platform/frameworks/base' package is a core component of the Android operating system, responsible for providing essential functionalities for building user interfaces. It includes classes and methods that manage the display and interaction of UI elements. This package is critical for app developers as it allows them to create responsive and interactive applications. However, it is also susceptible to vulnerabilities that can compromise the security of applications built on this framework.

Vulnerability Detail

In the 'getContextForResourcesEnsuringCorrectCachedApkPaths' method of 'RemoteViews.java', there exists a flaw that allows for the loading of arbitrary Java code within a privileged context. This vulnerability arises from a confused deputy problem, where an attacker can exploit the method to escalate privileges locally without needing additional execution rights. The exploitation of this vulnerability requires user interaction, making it a significant risk for applications that utilize the affected methods.

How To Fix

Minimum fixed version

16-next:2025-08-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

As a temporary workaround, developers can limit the use of the 'getContextForResourcesEnsuringCorrectCachedApkPaths' method until the package is updated. Additionally, consider implementing stricter validation of inputs and outputs when dealing with remote views to mitigate potential exploitation.

Conclusion

In summary, CVE-2025-22441 presents a serious risk to applications built on the Android Framework due to a vulnerability in the RemoteViews component. It is crucial for developers to apply the necessary patches and consider workarounds to safeguard their applications against potential exploitation.

See every vulnerability recorded for platform/frameworks/base →

Share this vulnerability

FAQ

CVE-2025-22441 is a vulnerability in the Android Framework that allows for arbitrary code execution due to a flaw in the 'getContextForResourcesEnsuringCorrectCachedApkPaths' method.

If your application uses the affected methods without proper safeguards, it may allow attackers to escalate privileges and execute arbitrary code, potentially compromising user data and application integrity.

Yes, patches are available for the affected versions of the Android Framework. It is recommended to update to the latest version to mitigate the risk.

If immediate updates are not possible, consider implementing workarounds such as limiting the use of the vulnerable methods and enhancing input validation.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for platform/frameworks/base.

How To Fix

Minimum fixed version

16-next:2025-08-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