CVE-2023-26321
📋 TL;DR
This path traversal vulnerability in Xiaomi File Manager allows attackers to write arbitrary files to sensitive locations by manipulating file paths. Attackers could potentially execute malicious code on affected devices. Users of Xiaomi File Manager international version are affected.
💻 Affected Systems
- Xiaomi File Manager (international version)
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete device compromise, data theft, and persistent backdoor installation.
Likely Case
Local file overwrite leading to application compromise, data corruption, or privilege escalation.
If Mitigated
Limited impact if proper file system permissions restrict write access to critical locations.
🎯 Exploit Status
Exploitation requires attacker to have some level of access to trigger the file operation with malicious path.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Not specified in advisory
Vendor Advisory: https://trust.mi.com/misrc/bulletins/advisory?cveId=541
Restart Required: Yes
Instructions:
1. Open Xiaomi App Store 2. Check for File Manager updates 3. Install latest version 4. Restart device
🔧 Temporary Workarounds
Disable File Manager
androidTemporarily disable the vulnerable application until patched
adb shell pm disable com.mi.android.globalFileexplorer
Restrict permissions
androidRemove storage permissions from File Manager app
adb shell pm revoke com.mi.android.globalFileexplorer android.permission.WRITE_EXTERNAL_STORAGE
🧯 If You Can't Patch
- Isolate affected devices from network access
- Implement application allowlisting to prevent unauthorized app execution
🔍 How to Verify
Check if Vulnerable:
Check File Manager version in Settings > Apps > File Manager > App info
Check Version:
adb shell dumpsys package com.mi.android.globalFileexplorer | grep versionName
Verify Fix Applied:
Verify updated version from Xiaomi App Store and check advisory for fixed version
📡 Detection & Monitoring
Log Indicators:
- Unusual file write operations in File Manager logs
- Path traversal patterns in file access logs
Network Indicators:
- Unexpected outbound connections from File Manager process
SIEM Query:
process_name:"com.mi.android.globalFileexplorer" AND (file_path:"../" OR file_path:"..\")