CVE-2026-54402 Command injection in Cloud Gateways

Critical 9.9 Published Updated

A low-privileged network attacker can execute arbitrary commands on Ubiquiti UniFi OS devices due to improper input validation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-54402?

CVE-2026-54402 is a critical command injection vulnerability in Ubiquiti Inc Cloud Gateways, published on 2 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A malicious actor with access to the network and low privileges could exploit an Improper Input Validation vulnerability found in UniFi OS to execute a Command Injection on the host device.

Weakness: CWE-77, CWE-20

Which versions are affected by CVE-2026-54402?

It affects 32 products.

Products include Ui Enterprise Firewall Core Firmware, Ui Enterprise Fortress Gateway Firmware, Ui Enterprise Network Video Recorder Core Firmware, Ui Enterprise Network Video Recorder Firmware, Ui Unas 2 Firmware, Ui Unas 4 Firmware and 26 more.

How do I fix CVE-2026-54402?

No fix has been published for CVE-2026-54402 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-54402 being exploited?

There is no known exploitation of CVE-2026-54402 in the wild and no public exploit code.

Sources

Also known as GHSA-ghgx-h467-6r25.

Is CVE-2026-54402 in your software?

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

Check your SBOMs for free