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

High 7.8 Published Updated

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

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

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

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.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-45322 being exploited?

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

Sources

Also known as GHSA-wj72-7w8h-695f.

Is CVE-2026-45322 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free