CVE-2023-45779 Overview
CVE-2023-45779 is a cryptographic vulnerability in the APEX module framework of Android Open Source Project (AOSP). The vulnerability stems from improperly used cryptography that could allow malicious updates to platform components. This flaw enables local privilege escalation without requiring additional execution privileges or user interaction.
The APEX (Android Pony EXpress) module system was introduced by Google to enable modular system component updates. However, this vulnerability reveals that some Android device vendors shipped production devices using publicly known test keys to sign APEX modules, rather than using secure production keys. This cryptographic weakness allows attackers with local access to install maliciously crafted APEX modules that appear legitimately signed.
Critical Impact
Local privilege escalation through malicious APEX module updates, potentially compromising system-level components without user interaction
Affected Products
- Google Android (all versions prior to December 2023 security patch)
- Multiple Android device vendors using AOSP-derived firmware with test keys
- Fairphone and other OEM devices confirmed affected
Discovery Timeline
- December 4, 2023 - CVE-2023-45779 published to NVD
- December 2023 - Google releases security patch via Android Security Bulletin
- November 21, 2024 - Last updated in NVD database
Technical Details for CVE-2023-45779
Vulnerability Analysis
The vulnerability exists in how Android handles cryptographic verification of APEX modules. APEX modules are critical system components that can update core Android functionality without requiring a full system update. The security model relies on cryptographic signatures to ensure only authorized updates are installed.
The root issue is that certain Android vendors signed their production APEX modules using publicly available test keys from AOSP, rather than generating secure, unique signing keys for their production devices. These test keys are included in the AOSP source code repository and are intended solely for development and testing purposes.
An attacker who gains local access to an affected device can craft a malicious APEX module, sign it with the publicly known test key, and have the system accept it as a legitimate update. Since APEX modules run with elevated system privileges, this provides a direct path to privilege escalation.
Root Cause
The vulnerability originates from improper cryptographic key management by Android device vendors. Instead of generating unique, secure cryptographic keys for signing APEX modules in production builds, vendors reused test signing keys that are publicly available in the AOSP repository. This violates fundamental cryptographic security principles where signing keys must remain confidential.
The test keys are well-documented and accessible to anyone with access to the AOSP source code, making them unsuitable for production use. The failure to implement proper key management during the build and release process created this security gap.
Attack Vector
The attack requires local access to the device, which could be achieved through:
- Physical access to an unlocked device
- ADB (Android Debug Bridge) access with appropriate permissions
- Exploitation of another vulnerability that provides local code execution
- Malicious application with sufficient permissions
Once local access is established, the attacker can install a maliciously crafted APEX module signed with the compromised test key. The system accepts this module as legitimate due to the valid signature verification against the embedded test key.
The attack flow involves creating or modifying an APEX package with malicious payloads, signing it using the publicly available AOSP test key, and installing it on the target device. Upon installation or device reboot, the malicious code executes with system-level privileges. For detailed technical analysis of the exploitation technique, see the RTX Exploitation Analysis.
Detection Methods for CVE-2023-45779
Indicators of Compromise
- Unexpected APEX module installations or updates in /data/apex/ directories
- Modifications to system APEX packages outside of normal OTA update processes
- Presence of APEX modules signed with known test key fingerprints
- Unusual system service behavior or unexpected privilege escalations
- Log entries indicating APEX package verification or installation anomalies
Detection Strategies
- Monitor for APEX package installation events through Android's PackageManagerService logs
- Implement cryptographic verification to detect modules signed with known test keys
- Deploy endpoint detection to identify unauthorized changes to system partitions
- Analyze APEX signing certificates against known vulnerable test key fingerprints
- Review logcat output for apexd daemon activity indicating unexpected module staging
Monitoring Recommendations
- Enable comprehensive logging for APEX-related system services
- Configure alerts for any APEX installation attempts outside of official OTA channels
- Implement file integrity monitoring on APEX storage directories
- Deploy mobile threat defense solutions capable of detecting privilege escalation attempts
- Establish baseline of legitimate APEX modules and alert on deviations
How to Mitigate CVE-2023-45779
Immediate Actions Required
- Apply the December 2023 Android security patch or later immediately
- Verify device vendor has released updated firmware with proper APEX signing keys
- Review organizational mobile device fleet for affected device models
- Restrict ADB access and enforce screen lock policies on managed devices
- Consider temporary isolation of confirmed vulnerable devices until patched
Patch Information
Google addressed this vulnerability in the Android Security Bulletin December 2023. The patch ensures proper cryptographic key validation and removes trust in test signing keys for APEX modules in production builds.
Device vendors must rebuild their firmware with proper production signing keys and distribute updates to affected devices. Fairphone has released a dedicated security update addressing this vulnerability, as documented in their security advisory.
Organizations should check with their specific device manufacturers for patch availability and apply updates as they become available. The GitHub Security Advisory provides additional technical details on affected configurations.
Workarounds
- Disable ADB debugging on production devices to limit local attack surface
- Enforce device encryption and strong authentication to prevent unauthorized physical access
- Deploy Mobile Device Management (MDM) solutions to restrict application installations
- Implement network segmentation for devices that cannot be immediately patched
- Consider replacing devices from vendors who have not provided timely security updates
# Verify Android security patch level on device
adb shell getprop ro.build.version.security_patch
# Check for APEX module signatures (requires root)
adb shell ls -la /apex/
# Disable ADB over network (recommended)
adb shell settings put global adb_wifi_enabled 0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


