CVE-2023-40097
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-40097 is a vulnerability discovered in Android's PackageManagerHelper.java component, specifically in the hasPermissionForActivity function. The vulnerability was disclosed in December 2023 and affects Android versions 11 through 14. It stems from improper input validation that could lead to unauthorized URI grants (NVD, Android Bulletin).

Technical details

The vulnerability is classified as a local privilege escalation issue with a CVSS v3.1 base score of 7.8 (HIGH), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The core issue lies in the hasPermissionForActivity function of PackageManagerHelper.java, where improper input validation can lead to unauthorized URI grants. The vulnerability is categorized under CWE-20 (Improper Input Validation) (NVD).

Impact

If exploited, this vulnerability could lead to local escalation of privilege on affected Android devices. The attacker would not require additional execution privileges, though user interaction is needed for exploitation. This could potentially allow an attacker to gain elevated access to system resources (NVD).

Mitigation and workarounds

Google has addressed this vulnerability in the December 2023 Android Security Bulletin. Users should update their Android devices to the latest security patch level to mitigate this vulnerability. The fix has been implemented in a patch that can be found in the Android source code repository (Android Bulletin, Google Git).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management