
Proof-of-concept write-up and reproduction steps for CVE-2026-104585, a command injection and path traversal in MobSF 4.5.2 via unvalidated APK package names passed to ADB.
MobSF extracts the package attribute from an uploaded APK's AndroidManifest.xml via androguard and stores it verbatim as PACKAGE_NAME without validation. This attacker-controlled string is concatenated unescaped into local file paths used by adb pull and adb shell command arguments, leading to Path Traversal on the MobSF host and Remote Command Injection on the Android VM.
AndroidManifest.xml:
package="a.b; touch /tmp/MOBSF_PWNED_$(id -u); echo"
/download_data/). The payload executes via the ADB command-line interface.