The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-31317

CVE-2024-31317: Google Android Privilege Escalation Flaw

CVE-2024-31317 is a privilege escalation vulnerability in Google Android caused by unsafe deserialization in ZygoteProcess.java. Attackers can execute code as any app with WRITE_SECURE_SETTINGS permissions. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-31317 Overview

CVE-2024-31317 is a high-severity insecure deserialization vulnerability in Google Android's ZygoteProcess.java that allows an attacker to achieve code execution as any application through the WRITE_SECURE_SETTINGS permission. The flaw exists in multiple functions of the ZygoteProcess component, enabling local escalation of privilege with only User execution privileges required. Notably, user interaction is not needed for exploitation, making this vulnerability particularly dangerous for compromised or malicious applications.

Critical Impact

Attackers with WRITE_SECURE_SETTINGS permission can execute arbitrary code as any app on the device, leading to complete device compromise through local privilege escalation without user interaction.

Affected Products

  • Google Android 12.0
  • Google Android 12.1
  • Google Android 13.0
  • Google Android 14.0

Discovery Timeline

  • 2024-06-01 - Google releases security patch in Android Security Bulletin
  • 2024-07-09 - CVE-2024-31317 published to NVD
  • 2024-12-17 - Last updated in NVD database

Technical Details for CVE-2024-31317

Vulnerability Analysis

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data), a critical weakness that occurs when an application deserializes data from an untrusted source without proper validation. In the context of Android's ZygoteProcess.java, the unsafe deserialization allows attackers to manipulate object data during the Zygote process spawning mechanism, which is fundamental to how Android launches applications.

The Zygote process is a special daemon in Android that pre-loads common framework code and resources, forking itself to create new application processes efficiently. When deserialization is improperly handled in this critical component, an attacker can craft malicious serialized objects that, when processed, execute arbitrary code in the context of any application on the device.

The attack requires local access and the WRITE_SECURE_SETTINGS permission, which while restricted, can be obtained by applications with elevated privileges or through ADB commands. Once exploited, the attacker gains the ability to run code as any installed application, effectively bypassing Android's application sandboxing model.

Root Cause

The root cause lies in the improper handling of serialized data within multiple functions of ZygoteProcess.java. The code fails to adequately validate or sanitize input before deserializing objects, allowing crafted payloads to be processed. This unsafe deserialization pattern is particularly dangerous in Android's Zygote component because it operates at a fundamental level of the application launch process, with the ability to influence any spawned application process.

Attack Vector

The attack vector is local, requiring the attacker to have access to the device and the WRITE_SECURE_SETTINGS permission. This permission is typically reserved for system applications but can be granted via ADB or obtained by malicious applications that have already achieved some level of privilege escalation.

The exploitation flow involves:

  1. An attacker with WRITE_SECURE_SETTINGS permission crafts a malicious serialized object payload
  2. The payload is injected into the system settings that are processed by ZygoteProcess.java
  3. During application spawning, the Zygote process deserializes the malicious object
  4. The deserialization triggers execution of attacker-controlled code in the context of the target application

For detailed technical implementation, refer to the Android Source Code Change that addresses this vulnerability.

Detection Methods for CVE-2024-31317

Indicators of Compromise

  • Unusual modifications to secure settings on the device, particularly those related to application launching or Zygote configuration
  • Applications exhibiting unexpected behavior or accessing resources outside their normal scope
  • Anomalous Zygote process activity or crashes during application spawning
  • Evidence of WRITE_SECURE_SETTINGS permission being granted to non-system applications

Detection Strategies

  • Monitor for unauthorized granting of WRITE_SECURE_SETTINGS permission to third-party applications
  • Implement runtime detection for suspicious Zygote process behavior using endpoint security solutions
  • Deploy SentinelOne Singularity Mobile to detect and block exploitation attempts on Android devices
  • Analyze system logs for evidence of deserialization errors or crashes in ZygoteProcess.java

Monitoring Recommendations

  • Enable verbose logging for Android system services, particularly those related to application spawning
  • Utilize Mobile Threat Defense (MTD) solutions to monitor for privilege escalation attempts
  • Regularly audit device settings for unauthorized modifications to secure settings
  • Implement SentinelOne's behavioral AI to detect anomalous application execution patterns

How to Mitigate CVE-2024-31317

Immediate Actions Required

  • Apply the June 2024 Android Security Bulletin patches immediately to all affected devices
  • Audit all applications with WRITE_SECURE_SETTINGS permission and revoke unnecessary grants
  • Disable ADB debugging on production devices to prevent unauthorized permission grants
  • Deploy mobile endpoint protection solutions like SentinelOne Singularity Mobile for real-time threat detection

Patch Information

Google has addressed this vulnerability in the June 2024 Android Security Bulletin. The fix is available in the Android Source Code Change (commit e25a0e394bbfd6143a557e1019bb7ad992d11985). Organizations should ensure all Android devices are updated to the latest security patch level as specified in the Android Security Bulletin June 2024.

Workarounds

  • Restrict WRITE_SECURE_SETTINGS permission to only essential system applications using Mobile Device Management (MDM) policies
  • Implement network segmentation to isolate potentially compromised devices until patches can be applied
  • Use SentinelOne's application control features to prevent unauthorized applications from executing
  • Consider implementing additional authentication requirements for devices with sensitive data until patching is complete
bash
# Check current Android security patch level on device
adb shell getprop ro.build.version.security_patch

# List applications with WRITE_SECURE_SETTINGS permission
adb shell pm list permissions -g | grep WRITE_SECURE_SETTINGS
adb shell dumpsys package | grep -A1 "WRITE_SECURE_SETTINGS"

# Verify patch application by checking build fingerprint
adb shell getprop ro.build.fingerprint

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechGoogle Android

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability7.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Vendor Resources
  • Android Source Code Change

  • Android Security Bulletin June 2024
  • Related CVEs
  • CVE-2025-36920: Google Android Privilege Escalation Flaw

  • CVE-2026-0107: Google Android Privilege Escalation Flaw

  • CVE-2026-0110: Google Android Privilege Escalation Flaw

  • CVE-2026-0111: Google Android Privilege Escalation Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English