Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with valid UFO_MCP_API_KEY
-
ExploitCall press_key with crafted key_code
-
ExecutionAndroid shell reparses injected command
-
ImpactExecute arbitrary commands as Android shell user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid UFO_MCP_API_KEY (authenticated Mobile MCP caller), adb installed on the UFO host, and a reachable, already-authorized connected Android device running UFO prior to 3.0.9. The injection is delivered through the press_key tool's unvalidated free-form key_code parameter using shell metacharacters (e.g. ';', '&&', '|', '$()', backticks). Exploitation is strictly limited to Android shell-user privileges - it does NOT yield host operating-system execution, Android root, or access beyond the shell user - which materially caps the blast radius for defenders. |
| Impact | The input assigns CVSS 9.1 (Critical), but that score is inflated largely by the scope change (S:C) and the network attack vector; the real-world priority is lower. Key limiting signals: PR:L means the attacker must already hold a valid UFO_MCP_API_KEY, and exploitation additionally requires adb installed on the UFO host plus a reachable, already-authorized Android device - a fairly specific deployment. Impact is explicitly bounded to Android shell-user privileges (no host OS execution, no Android root), which argues against the C:L/I:H/A:L combination feeling truly 'critical' in practice. No EPSS score, no CISA KEV listing, and no public exploit were provided in the input, so there is no evidence of active or widespread exploitation (absence of these signals is not proof of safety, merely that they are unconfirmed). Net assessment: a legitimate authenticated command-injection flaw worth patching, but closer to a high-CVSS / moderate-real-risk issue than an emergency, given the authentication requirement, the niche research-grade product, and the lack of exploitation telemetry. |
| Exploit ScenarioDerived | An attacker (or a compromised/over-privileged MCP client) holding a valid UFO_MCP_API_KEY invokes the press_key tool with a crafted key_code such as 'KEYCODE_HOME; echo AUDIT_MARKER'. The adb client joins the arguments into a remote command string that the Android shell reparses, running the injected command as the Android shell user on the connected authorized device. No standalone public exploit was identified, though the fix commit's security tests enumerate working injection payloads. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Authenticated command injection in Microsoft UFO's Mobile MCP server (versions prior to 3.0.9) lets a caller who holds a valid UFO_MCP_API_KEY pass shell metacharacters through the press_key tool's free-form key_code parameter and have them executed as the Android shell user on an already-authorized, connected device. Exploitation is remote and requires adb on the UFO host plus a reachable paired device, so it is not a host OS compromise, nor does it grant Android root - impact is bounded to Android shell-user privileges on the target handset. No public exploit code or confirmed in-the-wild activity has been identified at time of analysis; the vendor has released a fix in version 3.0.9, and although the assigned CVSS is 9.1 (Critical), that score is driven largely by the scope change and network vector while the practical blast radius remains capped.
RemediationAI
Upgrade to Microsoft UFO 3.0.9 or later; the vendor fix is available as the tagged release https://github.com/microsoft/UFO/releases/tag/v3.0.9 and as upstream commit a538791043327a0c33731d5be428867a5fd71794, which applies a strict re.fullmatch(r"[A-Z0-9_]+", key_code) allowlist to the press_key tool before any adb invocation - this is the primary and preferred remediation and has no functional downside for legitimate key-name or numeric keycode usage. If immediate upgrade is not possible, compensating controls should be layered: rotate and tightly restrict distribution of UFO_MCP_API_KEY so only trusted operators can reach the Mobile MCP endpoint (weakness: any holder of a leaked or shared key can still attempt injection); block network exposure of the MCP HTTP server to untrusted networks or place it behind an authenticated reverse proxy and IP allowlist (trade-off: breaks remote automation clients); and reduce the attacker reachable surface by revoking ADB authorization for devices that do not need to be paired and by keeping USB/Wi-Fi debugging authorization scoped to specific, non-sensitive handsets (trade-off: limits intended device-fleet automation). Because exploitation does not yield host OS or Android root privileges, isolating the UFO host and connected Android devices from sensitive internal networks provides additional containment while patching proceeds; note that these compensations mitigate but do not eliminate the underlying string-building flaw, so the upgrade to 3.0.9 should still be scheduled as the definitive fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic OS command injection (CWE-78) arising from unsafe construction of an Android Debug Bridge (adb) command. In ufo/client/mcp/http_servers/mobile_mcp_server.py, the press_key MCP tool accepted an unvalidated, free-form key_code string and forwarded it to adb shell input keyevent <key_code>. Because the adb client concatenates its arguments into a single remote command string that is then re-parsed by the Android device's shell, any embedded metacharacters - semicolon, &&, ||, pipe, backticks, $(), newline, or redirection operators - are interpreted by that remote shell rather than treated as literal input, yielding arbitrary command execution in the context of the Android shell user. The upstream fix at commit a538791043327a0c33731d5be428867a5fd71794 adds an import of re and a re.fullmatch(r"[A-Z0-9_]+", key_code) guard before ADB is invoked, rejecting empty values, whitespace, options, shell metacharacters, and multi-token input with a structured error; accompanying tests in tests/security/test_mobile_mcp_auth.py parametrize payloads such as 'KEYCODE_HOME; echo AUDIT_MARKER', 'KEYCODE_HOME&&echo AUDIT_MARKER', backtick substitution, and unicode homoglyphs to verify that asyncio.create_subprocess_exec is never called on invalid input. The CPE cpe:2.3:a:microsoft:ufo:*:*:*:*:*:*:*:* confirms the affected component is the Microsoft UFO automation framework itself, distribution-agnostic across platforms. The scope change (S:C) in the CVSS vector reflects that the vulnerable component (the Python MCP server) is not where the injected code executes (the Android device shell); confidentiality is limited, integrity is high, and availability is low, consistent with a shell foothold limited to non-root Android context.
Know when Ufo gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L
Network-reachable MCP server (AV:N) needs only a valid API key (PR:L); injection on the host alters a separate Android device (S:C), yielding shell-user command execution (I:H, C:L, A:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Microsoft UFO is an open-source framework for intelligent automation across devices and platforms. Prior to 3.0.9, the press_key tool in ufo/client/mcp/http_servers/mobile_mcp_server.py accepts a free-form key_code parameter and passes it to adb shell input keyevent. The adb client joins the arguments into a remote command string that the Android shell reparses, allowing an authenticated Mobile MCP caller to execute additional commands as the Android shell user on an authorized connected device. Exploitation requires a valid UFO_MCP_API_KEY, adb on the host, and a reachable authorized device, and it does not establish host operating-system execution, Android root execution, or access beyond the Android shell-user privileges. This issue is fixed in version 3.0.9.
Articles & Coverage 1
Technical POC Analysis
CWE-78: Improper Neutralization of Special Elements used in an OS Command.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Microsoft UFO's Mobile MCP server (versions prior to 3.0.9) permits a caller holding a valid UFO_MCP_API_KEY to pass shell metacharacters into the press_key tool and have them executed as the Android shell user on an already-connected device, exposing mobile application data and device-level operations to manipulation. The blast radius is bounded - the UFO host operating system is not compromised and Android root is not obtained - but teams using UFO for mobile test automation or device fleet management should treat affected deployments as a data-exposure and integrity risk. Leadership should care because remediation depends on a coordinated upgrade across engineering environments, and until it is complete the primary barrier to abuse is the handling of a shared API key.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Missing authentication in Microsoft UFO's mobile MCP servers lets an unauthenticated remote attacker fully control an AD
DNS rebinding against Microsoft UFO's Linux MCP server (all versions prior to 3.0.8) enables an attacker-controlled web
Authenticated role spoofing in Microsoft UFO's WebSocket control plane (version 3.0.1-4-ge2626659) lets any client holdi
Path traversal write in Microsoft UFO (build 3.0.1-4-ge2626659) lets an authenticated client smuggle directory-traversal
Arbitrary OS command execution in Microsoft's UFO intelligent-automation framework (tagged releases up to and including
Argument injection in Microsoft UFO's run_shell tool lets an attacker who can influence an agent workflow execute arbitr
Server-side request forgery in Microsoft UFO's URL validation layer allows unauthenticated remote attackers to bypass th
Session-squatting and memory exhaustion in Microsoft UFO's WebSocket server allow any authenticated client to permanentl
Authenticated denial of service in Microsoft UFO prior to 3.0.9: a caller holding a valid API key can indefinitely block
Cross-connection response leakage in Microsoft UFO's WebSocket layer allows an authenticated low-privileged user to rece
Authenticated cross-device task-result injection in Microsoft UFO's constellation architecture allows a low-privileged p
Authenticated cross-client stale result replay in Microsoft UFO's WebSocket task handling allows a low-privileged attack
EUVD-2026-93421
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB