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-105789 Overview
CVE-2026-105789 is an argument injection vulnerability [CWE-88] in Microsoft UFO, an open-source framework for intelligent automation across devices and platforms. The flaw resides in the execute_command tool within ufo/client/mcp/http_servers/linux_mcp_server.py. The implementation treats sort and uniq as read-only commands, but their file-output flags allow attackers to write arbitrary files. An authenticated caller can abuse sort -o or the optional second operand of uniq to create or overwrite any file writable by the UFO server process. The issue is fixed in version 3.0.9.
Critical Impact
Authenticated attackers can corrupt configuration files or other writable data accessible to the UFO server process, disrupting service availability without requiring shell metacharacters.
Affected Products
- Microsoft UFO framework versions prior to 3.0.9
- The linux_mcp_server.py HTTP server component
- Deployments exposing the execute_command MCP tool
Discovery Timeline
- 2026-10-06 - CVE CVE-2026-105789 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105789
Vulnerability Analysis
The execute_command tool in UFO's Linux MCP (Model Context Protocol) HTTP server implements an allowlist of commands considered safe for execution. The developers classified sort and uniq as read-only utilities and permitted them with free-form argument strings. This classification ignores that both utilities support file-output modes handled directly by the binary rather than via shell redirection.
The sort command accepts -o FILE to write sorted output to a target path. The uniq command accepts an optional second positional argument that specifies an output file. Because the allowed binary opens the destination itself, no shell metacharacters are required and standard argument-sanitization filters fail to detect the write operation.
The demonstrated primitive does not disclose files or achieve arbitrary code execution directly. However, overwriting configuration, state, or data files that the UFO server process controls can corrupt application behavior and interrupt service.
Root Cause
The argument policy in linux_mcp_server.py enforces command-level allowlisting without validating the semantic effect of permitted flags. The underlying weakness is improper neutralization of argument delimiters in a command [CWE-88]. Trusting a binary's name while permitting arbitrary flags collapses the distinction between read and write operations.
Attack Vector
An authenticated client with access to the MCP endpoint sends a request to execute_command specifying sort or uniq with crafted arguments. For example, invoking sort -o /path/to/target /dev/null creates or truncates the destination file. Invoking uniq /dev/null /path/to/target produces the same effect through the optional output operand. The server executes the command under its own process identity, writing to any path the service account can modify.
The vulnerability requires authentication, user interaction, and high attack complexity, but produces a high integrity impact once exploitation succeeds.
Detection Methods for CVE-2026-105789
Indicators of Compromise
- Unexpected modification timestamps on UFO configuration, log, or state files owned by the UFO server process account.
- MCP server access logs showing execute_command invocations where the command argument contains sort with -o or uniq with two file operands.
- New or zero-byte files appearing in directories writable by the UFO service account that do not match normal application output.
Detection Strategies
- Instrument the execute_command handler to log the full command parameter and alert on -o flags passed to sort or on uniq invocations with more than one positional argument.
- Deploy file integrity monitoring on UFO configuration directories and other writable application paths to catch unauthorized writes.
- Correlate MCP authentication events with subsequent execute_command calls to identify anomalous callers performing argument-based write operations.
Monitoring Recommendations
- Enable Linux audit rules (auditd) on paths managed by the UFO service to capture openat syscalls with write flags originating from the UFO process.
- Forward MCP HTTP server access and application logs to a centralized analytics platform for query against the suspicious argument patterns.
- Baseline normal command parameters passed to execute_command and alert on deviations, particularly flags that imply file creation.
How to Mitigate CVE-2026-105789
Immediate Actions Required
- Upgrade Microsoft UFO to version 3.0.9 or later, which contains the fix for this argument injection flaw.
- Restrict network access to the MCP HTTP server so only trusted automation clients can authenticate.
- Audit the UFO service account's filesystem permissions and remove write access to any paths not required for normal operation.
Patch Information
Microsoft published the fix in UFO 3.0.9. Review the GitHub Security Advisory GHSA-85w2-wggf-rw49, the GitHub Pull Request #349, the GitHub Commit Details, and the GitHub Release v3.0.9 for complete remediation guidance.
Workarounds
- Disable the execute_command tool in linux_mcp_server.py if the deployment does not require it.
- Patch the argument policy locally to reject sort invocations containing -o and uniq invocations with a second positional operand until the official upgrade is applied.
- Run the UFO server under a dedicated low-privilege user that cannot write to configuration directories or shared data paths.
# Upgrade example
pip install --upgrade ufo-agent==3.0.9
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

