Skip to main content
Vulnerability Database/CVE-2026-105788

CVE-2026-105788: Microsoft UFO Framework RCE Vulnerability

CVE-2026-105788 is a remote code execution flaw in Microsoft UFO framework that allows authenticated attackers to execute shell commands on Android devices. This post explains its impact, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105788 Overview

CVE-2026-105788 is an authenticated command injection vulnerability in Microsoft UFO, an open-source framework for intelligent automation across devices and platforms. The flaw resides in the Mobile Model Context Protocol (MCP) HTTP server, specifically the type_text and launch_app tools in ufo/client/mcp/http_servers/mobile_mcp_server.py. These tools pass caller-controlled text and package_name parameters directly into Android Debug Bridge (ADB) shell command arguments without comprehensive validation. The ADB client joins those arguments into a remote command string that the Android shell reparses, allowing shell metacharacters to execute additional commands on the connected device. Microsoft fixed the issue in UFO version 3.0.10.

Critical Impact

Authenticated attackers with a valid Mobile MCP API key and access to an ADB-authorized device can execute arbitrary commands on the device as the Android shell user.

Affected Products

  • Microsoft UFO framework versions prior to 3.0.10
  • Mobile MCP HTTP server component (mobile_mcp_server.py)
  • Deployments exposing the Mobile MCP API to authenticated callers with ADB-authorized Android devices

Discovery Timeline

  • 2026-10-06 - CVE-2026-105788 published to the National Vulnerability Database
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105788

Vulnerability Analysis

The vulnerability is an OS command injection flaw classified under CWE-78. The Mobile MCP HTTP server exposes automation tools that proxy requests to a connected Android device via ADB. When a caller invokes type_text or launch_app, the server forwards the text or package_name argument into an adb shell command. ADB serializes multiple arguments into a single remote command string, which the Android shell then reparses. As a result, metacharacters such as ;, |, &, and backticks are interpreted by the device-side shell rather than passed as literal input. An authenticated caller can inject additional commands that run under the Android shell user context.

Root Cause

The root cause is insufficient sanitization and quoting of caller-controlled strings before they are concatenated into ADB shell argument positions. The Python code constructs subprocess arguments without routing them through shlex.quote() or an equivalent escaping primitive, so attacker-supplied content remains syntactically significant to the remote shell interpreter.

Attack Vector

Exploitation requires two preconditions: a valid Mobile MCP API key and network reachability to a device already authorized for ADB. The attack does not grant host operating-system execution, Android root privileges, or capabilities beyond those available to the Android shell user. However, the shell user can access user-level app data accessible via run-as, invoke system binaries, install or uninstall packages, and manipulate device state.

python
# Patch diff from ufo/client/mcp/http_servers/mobile_mcp_server.py
 import hmac
 import os
 import re
+import shlex
 import subprocess
 import tempfile
 import xml.etree.ElementTree as ET
# Source: https://github.com/microsoft/UFO/commit/214443218bf4a3b8de798fd44e7fd770afefee83

The patch imports shlex so that caller-controlled arguments can be safely quoted before being passed into ADB shell invocations. A companion commit introduces re to validate press_key inputs. See GitHub Commit 2144432 and GitHub Commit a538791 for the full remediation.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-105788

Indicators of Compromise

  • Unexpected adb shell command strings containing metacharacters such as ;, &&, ||, |, backticks, or $() in Mobile MCP server logs
  • Android device processes spawned by the shell user that do not correspond to legitimate type_text or launch_app operations
  • Outbound network connections or package installation events on managed devices that correlate with Mobile MCP API traffic

Detection Strategies

  • Instrument the Mobile MCP HTTP server to log every text and package_name value received by type_text and launch_app, then alert on values containing shell metacharacters
  • Review ADB server audit logs for shell invocations whose argument counts or token patterns deviate from the expected automation workload
  • Correlate authenticated Mobile MCP API calls with device-side logcat entries showing shell activity outside the expected tool semantics

Monitoring Recommendations

  • Monitor UFO deployments for versions below 3.0.10 using software inventory tooling
  • Track Mobile MCP API key usage patterns and alert on anomalous callers or request volumes
  • Capture and retain ADB and logcat telemetry from connected test devices to support post-incident forensics

How to Mitigate CVE-2026-105788

Immediate Actions Required

  • Upgrade Microsoft UFO to version 3.0.10 or later as the primary remediation
  • Rotate all Mobile MCP API keys and restrict issuance to trusted automation callers
  • Restrict network reachability of the Mobile MCP HTTP server to known orchestration hosts only
  • Revoke ADB authorization on any device that does not require ongoing automation access

Patch Information

Microsoft released the fix in UFO v3.0.10. The patch adds shlex quoting for arguments passed into ADB shell commands in type_text and launch_app, and adds regex-based validation for press_key. Review the GitHub Security Advisory GHSA-6ppj-5886-4f26 and the GitHub Release v3.0.10 for complete details.

Workarounds

  • If immediate upgrade is not possible, disable the Mobile MCP HTTP server or gate the type_text and launch_app tools behind an input filter that rejects shell metacharacters
  • Limit Mobile MCP API keys to short-lived credentials scoped to specific automation workflows
  • Place the Mobile MCP server behind a reverse proxy that enforces strict allowlists on request payloads
bash
# Verify the installed UFO version and upgrade
pip show ufo | grep -i version
pip install --upgrade "ufo>=3.0.10"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.