CVE-2024-40654: Spoofing `getCallingPackage` or `getCallingActivity` with FLAG_ACTIVITY_FORWARD_RESULT

Summary

01/09/2024
Yes i
High
Not published

CVE-2024-40654: In multiple locations, there is a possible permission bypass due to a confused deputy. Affects platform/packages/apps/Settings across 5 version ranges.

>= 12:0, < 12:2024-09-01 >= 12L:0, < 12L:2024-09-01 >= 13:0, < 13:2024-09-01 >= 14:0, < 14:2024-09-01 >= 15-next:0, < 15-next:2024-09-01

Fixed in 15-next:2024-09-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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is platform/packages/apps/Settings in the Android ecosystem. This package is responsible for managing various settings and configurations on Android devices. It provides a user interface for users to customize their device settings, including network, display, sound, and security settings.

Vulnerability Detail

The vulnerability in platform/packages/apps/Settings allows for a possible permission bypass due to a confused deputy. This vulnerability can be exploited by an attacker to escalate their privileges locally without requiring any additional execution privileges. The exploitation of this vulnerability requires user interaction. The vulnerability is introduced in version 15-next:0 and is fixed in version 15-next:2024-09-01.

How To Fix

Minimum fixed version

15-next:2024-09-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

No workaround is mentioned for this vulnerability.

Conclusion

The platform/packages/apps/Settings package in the Android ecosystem is vulnerable to a permission bypass vulnerability that can lead to local escalation of privilege. It is recommended to update to version 15-next:2024-09-01 or later to fix this vulnerability.

See every vulnerability recorded for platform/packages/apps/Settings →

Share this vulnerability

FAQ

The impact of this vulnerability is a possible local escalation of privilege. An attacker can exploit this vulnerability to gain elevated privileges on the affected device.

Yes, user interaction is needed for the successful exploitation of this vulnerability.

Versions 15-next:0 and earlier are affected by this vulnerability.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities in software.

No, there are no known workarounds for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for platform/packages/apps/Settings.

How To Fix

Minimum fixed version

15-next:2024-09-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