Skip to main content

Microsoft UFO CVE-2026-105793

| EUVDEUVD-2026-93421 CRITICAL
OS Command Injection (CWE-78)
2026-10-06 GitHub_M
9.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with valid UFO_MCP_API_KEY
  2. Exploit
    Call press_key with crafted key_code
  3. Execution
    Android shell reparses injected command
  4. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

UFO < 3.0.9

Affected Packages

euvd ufo fix: 3.0.9

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

Vendor (GitHub_M) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L
vuln.today AI 9.1 CRITICAL

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:L

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
Oct 06, 2026 - 16:03 EUVD
CVE Published
Oct 06, 2026 - 14:12 cve.org
CRITICAL 9.1

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.9%
Top 43% exploitable
Prevalence
Low
open-source research automation framework, limited production deployment footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Ufo

View all
CVE-2026-73296 CRITICAL
9.4 Aug 12

Missing authentication in Microsoft UFO's mobile MCP servers lets an unauthenticated remote attacker fully control an AD

CVE-2026-62316 HIGH
8.8 Aug 21

DNS rebinding against Microsoft UFO's Linux MCP server (all versions prior to 3.0.8) enables an attacker-controlled web

CVE-2026-46414 HIGH
8.8 May 27

Authenticated role spoofing in Microsoft UFO's WebSocket control plane (version 3.0.1-4-ge2626659) lets any client holdi

CVE-2026-46402 HIGH
8.1 May 27

Path traversal write in Microsoft UFO (build 3.0.1-4-ge2626659) lets an authenticated client smuggle directory-traversal

CVE-2026-45322 HIGH
7.8 May 27

Arbitrary OS command execution in Microsoft's UFO intelligent-automation framework (tagged releases up to and including

CVE-2026-105791 HIGH
7.5 Oct 06

Argument injection in Microsoft UFO's run_shell tool lets an attacker who can influence an agent workflow execute arbitr

CVE-2026-73297 MEDIUM
6.9 Aug 12

Server-side request forgery in Microsoft UFO's URL validation layer allows unauthenticated remote attackers to bypass th

CVE-2026-55440 MEDIUM
6.5 Jul 16

Session-squatting and memory exhaustion in Microsoft UFO's WebSocket server allow any authenticated client to permanentl

CVE-2026-105792 MEDIUM
6.5 Oct 06

Authenticated denial of service in Microsoft UFO prior to 3.0.9: a caller holding a valid API key can indefinitely block

CVE-2026-46416 MEDIUM
6.3 May 27

Cross-connection response leakage in Microsoft UFO's WebSocket layer allows an authenticated low-privileged user to rece

CVE-2026-46538 MEDIUM
5.9 May 27

Authenticated cross-device task-result injection in Microsoft UFO's constellation architecture allows a low-privileged p

CVE-2026-46544 MEDIUM
5.3 May 27

Authenticated cross-client stale result replay in Microsoft UFO's WebSocket task handling allows a low-privileged attack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy