# CVE-2026-54402: Ubiquiti UniFi OS command injection via improper input validation

Source: https://junglewise.ai/threats/cve-2026-54402-ubiquiti-unifi-os-command-injection-via-improper-input-validation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-02. Updated: 2026-07-02  
License: CC BY 4.0 with a link back

CVE-2026-54402 · Severity: critical · CVSS 9.9 · Published 2026-07-02

A security vulnerability has been identified in Ubiquiti UniFi OS, the software used to manage various networking and security devices like routers, firewalls, and video recorders. An attacker with low-level access to the network could take full control of the device by executing unauthorized commands. This could lead to a complete compromise of the network infrastructure, data theft, or service disruptions.

Technologies: [Ubiquiti Cloud Gateway](https://junglewise.ai/threats/technologies/cloud-gateway), [Ubiquiti Cloud Key](https://junglewise.ai/threats/technologies/cloud-key), [Ubiquiti Dream Machine](https://junglewise.ai/threats/technologies/dream-machine), [Ubiquiti Dream Router](https://junglewise.ai/threats/technologies/dream-router), [Ubiquiti Dream Wall](https://junglewise.ai/threats/technologies/dream-wall), [Ubiquiti Enterprise Firewall Core](https://junglewise.ai/threats/technologies/enterprise-firewall-core), [Ubiquiti Enterprise Video Recorder](https://junglewise.ai/threats/technologies/enterprise-video-recorder), [Ubiquiti Network Video Recorder](https://junglewise.ai/threats/technologies/network-video-recorder), [Ubiquiti UniFi OS](https://junglewise.ai/threats/technologies/unifi-os). Vendors: [Ubiquiti](https://junglewise.ai/threats/vendors/ubiquiti).

## Quick answers

**Is CVE-2026-54402 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54402 being exploited in the wild.

**How severe is CVE-2026-54402?** Critical severity, with a CVSS score of 9.9, published 2 July 2026.

**Which products and versions are affected?** Ubiquiti Cloud Gateway < 5.1.19; Ubiquiti Cloud Key < 5.1.19; Ubiquiti Dream Machine < 5.1.19; Ubiquiti Dream Router < 5.1.19; and 5 more.

**Is there a fix for CVE-2026-54402?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-54402 attacked?** It is attacked over the network, in an operating system.

**Am I affected by CVE-2026-54402?** Check whether you run Ubiquiti Cloud Gateway, Ubiquiti Cloud Key, Ubiquiti Dream Machine or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An improper input validation vulnerability (CWE-20) exists in Ubiquiti UniFi OS across multiple hardware platforms. A remote attacker with low-level authenticated access can exploit this flaw to perform command injection on the underlying host operating system. The vulnerability is characterized by a CVSS 3.1 score of 9.9, indicating a high impact on confidentiality, integrity, and availability with scope change. The issue affects various UniFi products including Dream Machines, Cloud Gateways, and Network Video Recorders running versions prior to 5.1.19. Users are advised to update to UniFi OS version 5.1.19 or later to mitigate this risk.

## Affected products

- Ubiquiti Inc UniFi OS Server < 5.1.19
- Ubiquiti Inc Dream Machines < 5.1.19
- Ubiquiti Inc Enterprise Fortress Gateway < 5.1.19
- Ubiquiti Inc Dream Wall < 5.1.19
- Ubiquiti Inc Dream Routers < 5.1.19
- Ubiquiti Inc Express 7 < 5.1.19
- Ubiquiti Inc Cloud Keys < 5.1.19
- Ubiquiti Inc Network Video Recorders < 5.1.19
- Ubiquiti Inc Enterprise Video Recorders < 5.1.19
- Ubiquiti Inc Cloud Gateways < 5.1.19
- Ubiquiti Inc Network Attached Storage < 5.1.19
- Ubiquiti Inc Enterprise Firewall Core < 5.1.19

## Timeline

- 2026-07-02: disclosed
- 2026-07-02: advisory

## References

- [https://community.ui.com/releases/Security-Advisory-Bulletin-066-066/984eceb3-49c8-4227-942d-671c289b3afc](https://community.ui.com/releases/Security-Advisory-Bulletin-066-066/984eceb3-49c8-4227-942d-671c289b3afc)

## Related threats

- [Ubiquiti UniFi OS CRLF injection authentication bypass](https://junglewise.ai/threats/cve-2026-77550-ubiquiti-unifi-os-crlf-injection-authentication-bypass)
- [Ubiquiti UniFi OS CRLF injection authentication bypass](https://junglewise.ai/threats/cve-2026-77549-ubiquiti-unifi-os-crlf-injection-authentication-bypass)
- [Ubiquiti UniFi OS active debug code privilege escalation](https://junglewise.ai/threats/cve-2026-77545-ubiquiti-unifi-os-active-debug-code-privilege-escalation)
- [Ubiquiti UniFi OS command injection vulnerability](https://junglewise.ai/threats/cve-2026-77540-ubiquiti-unifi-os-command-injection-vulnerability)
- [Ubiquiti UniFi OS command injection in input validation](https://junglewise.ai/threats/cve-2026-77539-ubiquiti-unifi-os-command-injection-in-input-validation)
