Skip to content
Heist/ feed
Back to feed
High

Microsoft UFO: Arbitrary code execution in `run_shell` via `explorer.exe` argument injection

Type: advisorySources: OSV

Microsoft UFO is an open-source framework for intelligent automation across devices and platforms. Prior to 3.0.9, the run_shell tool in the CommandLineExecutor component of ufo/client/mcp/local_servers/cli_mcp_server.py validates only the first token of the bash_command parameter and permits explorer.exe. On Windows, explorer.exe delegates its following path argument to ShellExecute, so an attacker-influenced agent call can launch an arbitrary executable or script as the desktop user even though the subprocess uses shell=False. Exploitation depends on a user running an affected agent workflow and on inducing the tool call, but successful execution can access or modify that user's files, tokens, and sessions. This issue is fixed in version 3.0.9.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-105791
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:21 UTC · Revision 1

Source evidence

Microsoft UFO: Arbitrary code execution in `run_shell` via `explorer.exe` argument injection

core-osv · Original source

Published 6 Oct 2026, 14:09 UTC

Microsoft UFO is an open-source framework for intelligent automation across devices and platforms. Prior to 3.0.9, the run_shell tool in the CommandLineExecutor component of ufo/client/mcp/local_servers/cli_mcp_server.py validates only the first token of the bash_command parameter and permits explorer.exe. On Windows, explorer.exe delegates its following path argument to ShellExecute, so an attacker-influenced agent call can launch an arbitrary executable or script as the desktop user even though the subprocess uses shell=False. Exploitation depends on a user running an affected agent workflow and on inducing the tool call, but successful execution can access or modify that user's files, tokens, and sessions. This issue is fixed in version 3.0.9.

osv:CVE-2026-105791
Complete source record
{
  "id": "fe598f766e264c1e1ae9640c21d10ee99416fa9e80a71e01e08544d7d6292508",
  "url": "https://osv.dev/vulnerability/CVE-2026-105791",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Microsoft UFO: Arbitrary code execution in `run_shell` via `explorer.exe` argument injection",
    "summary": "Microsoft UFO is an open-source framework for intelligent automation across devices and platforms. Prior to 3.0.9, the run_shell tool in the CommandLineExecutor component of ufo/client/mcp/local_servers/cli_mcp_server.py validates only the first token of the bash_command parameter and permits explorer.exe. On Windows, explorer.exe delegates its following path argument to ShellExecute, so an attacker-influenced agent call can launch an arbitrary executable or script as the desktop user even though the subprocess uses shell=False. Exploitation depends on a user running an affected agent workflow and on inducing the tool call, but successful execution can access or modify that user's files, tokens, and sessions. This issue is fixed in version 3.0.9.",
    "evidence": "osv:CVE-2026-105791",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-105791",
      "aliases": [
        "CVE-2026-105791",
        "GHSA-cmq9-vqjf-4q2q"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/microsoft/ufo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "be75a7ded2ad98d97819e15ff1b39d4202ac3ac5"
                },
                {
                  "fixed": "3e1262fc091eb319253b7a1338b63f62cc6c82b1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "3.0.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3e1262fc091eb319253b7a1338b63f62cc6c82b1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "be75a7ded2ad98d97819e15ff1b39d4202ac3ac5"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v3.0.9"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.0.8",
            "3.0.7",
            "3.0.6",
            "v3.0.1",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-105791.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.107697478Z",
      "provider": "osv",
      "references": [
        "https://github.com/microsoft/UFO/releases/tag/v3.0.9",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105791.json",
        "https://github.com/microsoft/UFO/security/advisories/GHSA-cmq9-vqjf-4q2q",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-105791",
        "https://github.com/microsoft/UFO/commit/3e1262fc091eb319253b7a1338b63f62cc6c82b1"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-184",
          "CWE-88"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105791.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-105791",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493766,
  "published_at": "2026-10-06T14:09:23.272+00:00"
}