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

CVE-2026-105791: Microsoft UFO Framework RCE Vulnerability

CVE-2026-105791 is a remote code execution flaw in Microsoft UFO framework that allows attackers to execute arbitrary code via explorer.exe on Windows systems. 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-105791 Overview

Microsoft UFO is an open-source framework for intelligent automation across devices and platforms. CVE-2026-105791 is an argument injection vulnerability [CWE-88] in the run_shell tool of the CommandLineExecutor component, located at ufo/client/mcp/local_servers/cli_mcp_server.py. The validator inspects only the first token of the bash_command parameter and allows explorer.exe. On Windows, explorer.exe forwards its path argument to ShellExecute, enabling an attacker-influenced agent call to launch arbitrary executables or scripts as the desktop user. Microsoft fixed the issue in UFO version 3.0.9.

Critical Impact

An attacker who induces a UFO agent to invoke run_shell with a crafted explorer.exe argument can execute arbitrary code in the user's session, accessing files, tokens, and active sessions.

Affected Products

  • Microsoft UFO versions prior to 3.0.9
  • ufo/client/mcp/local_servers/cli_mcp_server.py (CommandLineExecutor component)
  • Windows hosts running UFO agent workflows

Discovery Timeline

  • 2026-10-06 - CVE-2026-105791 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-105791

Vulnerability Analysis

The run_shell tool enforces an allow-list of permitted executables by validating only the first whitespace-separated token of the bash_command string. Because explorer.exe appears on that allow-list, any arguments following the executable name pass through the check without inspection. The subprocess call uses shell=False, which blocks shell metacharacter abuse but does not prevent explorer.exe itself from acting as a launcher.

On Windows, explorer.exe delegates path arguments to the ShellExecute API. ShellExecute resolves and runs the specified target using the registered handler for its file type. The outcome is arbitrary program execution under the context of the signed-in desktop user.

Root Cause

The root cause is incomplete argument validation [CWE-88]. The allow-list design assumes that permitted binaries behave as inert utilities, but explorer.exe is itself a shell surrogate. The validator never inspects trailing arguments, so attacker-controlled paths reach ShellExecute unchanged.

Attack Vector

Exploitation requires a user to be running an affected UFO agent workflow and an attacker-influenced prompt or data source that causes the agent to invoke run_shell. The attacker supplies a bash_command value beginning with explorer.exe followed by a path to a malicious executable, script, or UNC location. Execution occurs in the user's security context, inheriting their file access, tokens, and session scope.

python
# Patch excerpt: removal of explorer from the allow-list
# ufo/client/mcp/local_servers/cli_mcp_server.py
         "mspaint.exe",
         "wordpad",
         "wordpad.exe",
-        "explorer",
-        "explorer.exe",
         "msedge",
         "msedge.exe",
         "chrome",

Source: GitHub Commit 3e1262fc

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-105791

Indicators of Compromise

  • Process creation events where explorer.exe is spawned as a child of a Python interpreter running UFO or the MCP server
  • explorer.exe command lines containing paths to executables, scripts (.bat, .cmd, .ps1, .vbs, .hta), or UNC shares
  • Unexpected child processes of explorer.exe originating from an agent workflow session

Detection Strategies

  • Monitor for explorer.exe invocations originating from automation frameworks and flag any that pass non-standard path arguments
  • Correlate MCP server activity in cli_mcp_server.py with subsequent process launches to identify tool-driven execution chains
  • Alert on UFO agent telemetry showing run_shell tool calls with bash_command values that begin with explorer

Monitoring Recommendations

  • Enable Windows process creation auditing (Event ID 4688) with command-line logging
  • Collect Sysmon Event ID 1 to capture parent-child process lineage for UFO workflows
  • Forward endpoint process telemetry into a central data lake for retroactive hunting across agent-driven sessions

How to Mitigate CVE-2026-105791

Immediate Actions Required

  • Upgrade Microsoft UFO to version 3.0.9 or later on every host running the agent framework
  • Audit existing UFO deployments for custom allow-list modifications that reintroduce explorer.exe or other shell-surrogate binaries
  • Review recent agent transcripts and run_shell invocations for explorer.exe arguments indicating prior exploitation

Patch Information

The fix is published in GitHub Release v3.0.9. The patch removes explorer and explorer.exe from the permitted command allow-list in CommandLineExecutor. Details are documented in the GitHub Security Advisory GHSA-cmq9-vqjf-4q2q and the commit record.

Workarounds

  • Remove explorer and explorer.exe entries from the CommandLineExecutor allow-list if an immediate upgrade is not feasible
  • Restrict UFO agent execution to isolated, non-privileged user accounts with limited file and network access
  • Disable or gate the run_shell tool behind human approval in sensitive automation workflows
bash
# Upgrade Microsoft UFO to the patched release
pip install --upgrade "ufo>=3.0.9"

# Verify the installed version
pip show ufo | grep -i version

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.