# CVE-2026-45322: OS Command Injection in Microsoft UFO Shell Action Replay via Stored Session JSON

> Attackers can execute arbitrary OS commands by modifying session JSON files, which are replayed by the Microsoft UFO automation framework.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 27 May 2026
- **Updated:** 28 May 2026
- **Also known as:** GHSA-wj72-7w8h-695f

## What is CVE-2026-45322?

CVE-2026-45322 is a high-severity command injection vulnerability in microsoft UFO, published on 27 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Microsoft UFO open-source framework for intelligent automation across devices and platforms. Microsoft UFO tagged releases up to and including v3.0.0 contain an OS command injection vulnerability in the shell action replay path. In affected releases, ShellReceiver.run_shell() passes a command string from action parameters directly to subprocess.Popen() with shell=True and executable=powershell.exe. The same shell-execution behavior is also reachable through ShellReceiver.execute_command(). The shell receiver is invoked by action classes such as RunShellCommand.execute() and ExecuteCommand.execute(), which forward stored action parameters to the shell receiver. Because UFO stores planned and executed actions in per-session JSON records, an attacker who can write or modify a session/action JSON file can plant a shell action. When the session is resumed or replayed, UFO executes the attacker's command as the UFO process user.

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2026-45322?


## How do I fix CVE-2026-45322?

No fix has been published for CVE-2026-45322 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-45322 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45322 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-45322 and fix it if it is affected.

What it is: CVE-2026-45322 is a high-severity command injection vulnerability in microsoft UFO, published on 27 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45322 exists.

Affected product: microsoft UFO. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-45322/ (Markdown: https://insights.sbomify.com/CVE-2026-45322/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-45322
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-45322
- OSV: https://osv.dev/vulnerability/CVE-2026-45322

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-45322/
Summaries are generated and may contain mistakes; the official description above is the record.
