SecurityContext

CVE-2024-31331: PackageManagerService - Privilege Escalation

  • Cve: CVE-2024-31331
  • Name: PackageManagerService - Privilege Escalation
  • Description: In setMimeGroup of PackageManagerService.java, there is a possible way to hide the service from Settings due to a logic error in the code. This could lead to local escalation of privilege with User execution privileges needed. User interaction is needed for exploitation.
  • Impact: Local attackers can hide the service from Settings, potentially escalating privileges or bypassing user awareness.
  • Remediation: Review and fix the logic error in setMimeGroup method in PackageManagerService.java to prevent hiding the service from Settings.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: user_interaction
  • Requirements: Attacker needs user interaction and user privileges
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.3
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00117
  • Epss percentile: 0.01687
  • Assignee: [email protected]
  • Published at: 2024-07-09T21:15:13Z
  • Age in days: 868
  • Modified at: 2026-06-17T07:28:12Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-31331
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
NVD-CWE-noinfo—
CWE-783Operator Precedence Logic Error

References

UrlSourceTags
https://source.android.com/security/bulletin/2024-07-01nvdPatch, Vendor Advisory
https://android.googlesource.com/platform/frameworks/base/+/c8694bbccfb9c19aefed536ea710230107c935ebnvdMailing List, Patch

Products

ProductAffectedPlatform boundSourcesUrl
google:android= 14.0, = 13.0, = 12.1, = 12.0nonvd/v1/products/google/android

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 239
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports