Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege account + network access
-
DeliveryReach UniFi OS management interface
-
ExploitSubmit crafted input to vulnerable field
-
ExecutionInject shell command bypassing input validation
-
PersistExecute arbitrary OS commands on host
-
ImpactFull device takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires (1) network reachability to the affected UniFi OS device's management surface and (2) a valid low-privilege authenticated account on that device - the CVSS vector's PR:L confirms authentication is needed, and the description explicitly states 'low privileges.' No user interaction and no special non-default feature toggle is documented as required (UI:N), so any UniFi OS build before 5.1.19 with a reachable management interface is exploitable by an authenticated low-privilege actor. The practical limiters are the need for that authenticated foothold and network access to the management interface, which in default deployments is LAN/management-network scoped rather than internet-facing; there is no unauthenticated path. |
| Impact | The signals are moderately consistent but not alarming. CVSS 3.1 is 8.8 (High) with network vector, low complexity, and only low privileges required (AV:N/AC:L/PR:L/UI:N), and SSVC rates technical impact as 'total' - meaning a successful exploit fully compromises the device. Countervailing signals lower the urgency: EPSS is only 0.79% (52nd percentile), SSVC exploitation status is 'none' (not in CISA KEV), and SSVC marks it not automatable. No public exploit has been identified. The key limiter is PR:L - the attacker must already hold a low-privilege authenticated foothold and network reachability to the management interface, which is not typically internet-exposed by default. Net assessment: a genuinely serious device-takeover bug worth prompt patching in managed fleets, but current real-world exploitation risk is low-to-moderate rather than emergency, and it is better treated as targeted-risk than mass-exploitable. No data conflicts were observed between the CVSS vector and the description; both indicate authenticated network-adjacent access. |
| Exploit ScenarioDerived | An attacker who has obtained a low-privileged UniFi account - for example a limited operator login or reused/leaked credentials - and can reach the device's management interface over the network submits a crafted value into a vulnerable input field that is passed to a host command. The injected shell payload executes on the UniFi OS host, giving the attacker command execution as the appliance's service context and a path to full device takeover. No public proof-of-concept has been identified, and the attack requires the authenticated foothold rather than being anonymously exploitable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jul 10, 2026
Command injection in Ubiquiti UniFi OS (all builds before 5.1.19) lets a low-privileged user on the same network run arbitrary operating-system commands on the underlying host device, giving full control of gateways, recorders, and Cloud Keys. The flaw stems from improper input validation (CWE-20) and carries high confidentiality, integrity, and availability impact (CVSS 8.8). There is no public exploit identified at time of analysis, and CISA's SSVC framework rates exploitation as none, but the technical impact is total and a vendor patch is already available.
Earlier versions of this analysis (2)
Command injection in Ubiquiti UniFi OS (versions prior to 5.1.19) allows a network-adjacent attacker holding low-privilege credentials to run arbitrary operating-system commands on the host device, gaining total control over gateways, recorders, and Cloud Keys running the platform. The flaw stems from improper input validation (CWE-20) reachable over the network, and while a vendor patch is available, there is no public exploit identified at time of analysis and EPSS rates near-term exploitation probability low at 0.79%.
Command injection in Ubiquiti UniFi OS allows a low-privileged attacker with network access to execute arbitrary operating-system commands on the underlying host device, affecting the UniFi OS Server and a broad range of UniFi appliances including Dream Machines, Dream Routers, Cloud Gateways, Cloud Keys, and Network/Enterprise Video Recorders. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C, all impacts High) scores 9.9 because a scope change lets an authenticated but low-privilege actor break out of the application context and fully compromise the host. There is no public exploit identified at time of analysis and it is not listed in CISA KEV, but the near-maximum score and host-level takeover make this a high-priority patch.
RemediationAI
Vendor-released patch: UniFi OS 5.1.19. Upgrade every affected device - Dream Machine/Router/Wall, Cloud Gateways, Cloud Keys, Express 7, Enterprise Fortress Gateway, Enterprise Firewall Core, UniFi OS Server, and the NVR/EVR/NAS lines - to 5.1.19 or later as described in Ubiquiti Security Advisory Bulletin 066 (https://community.ui.com/releases/Security-Advisory-Bulletin-066-066/984eceb3-49c8-4227-942d-671c289b3afc). Because exploitation requires a low-privileged authenticated user with network access, effective interim compensating controls until patching is complete are: restrict the UniFi OS management interface to a dedicated management VLAN and trusted admin IPs (side effect: admins must connect from that segment), ensure the management UI and SSH are never exposed to the internet, and audit and reduce the number of low-privilege local accounts and revoke unnecessary ones (side effect: some delegated operators lose access). Enforcing strong, unique credentials and MFA on management accounts further limits who can reach the vulnerable authenticated surface.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 12 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
UniFi OS is the embedded Linux-based management operating system that runs Ubiquiti's networking and video product lines - Dream Machine/Router/Wall gateways, Cloud Gateways, Cloud Keys, Express 7, Enterprise Fortress Gateway, Enterprise Firewall Core, and Network/Enterprise Video Recorders, plus the self-hosted UniFi OS Server (per the ubiquiti_inc CPE entries). The root cause is CWE-20 Improper Input Validation: attacker-controlled input reaches a host command context without adequate sanitization, allowing shell metacharacters or arguments to be injected and executed by the OS. Because the injection runs on the host device itself, successful exploitation translates directly into control of the appliance's operating system rather than just the management application.
Know when Network Attached Storage gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable management interface (AV:N) with low complexity and no user interaction, but requires a low-privilege authenticated account (PR:L); command execution on the host yields total C/I/A impact.
Primary rating from Vendor (hackerone).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
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.
Articles & Coverage 1
Executive ViewAI
Ubiquiti UniFi OS versions prior to 5.1.19 contain a critical command injection vulnerability (CVE-2026-54402) that permits low-privileged network users to execute arbitrary operating-system commands on infrastructure devices including gateways, recorders, and Cloud Keys. Successful exploitation grants complete device control with implications for network integrity, surveillance system availability, and potential lateral movement into connected enterprise systems.
Apply vendor patch: Ubiquiti UniFi OS version 5.1.19 or later.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
More in Network Attached Storage
View allAuthentication bypass in Ubiquiti UniFi OS lets a network-adjacent, unauthenticated attacker abuse improper neutralizati
Privilege escalation in Ubiquiti UniFi OS lets a low-privileged actor with network access to an affected device elevate
Privilege escalation in Ubiquiti UniFi OS devices allows a network-adjacent attacker holding a low-privileged account to
Authentication bypass in Ubiquiti UniFi OS lets a network-adjacent attacker circumvent login on affected devices by inje
Privilege escalation in Ubiquiti UniFi OS affects a broad range of gateway, NVR, storage, and Cloud Key appliances runni
Privilege escalation in Ubiquiti UniFi OS allows a low-privileged, network-adjacent user to chain a series of authentica
Privilege escalation via Server-Side Request Forgery affects Ubiquiti UniFi OS devices and the UniFi OS Server across th
Authentication bypass in Ubiquiti UniFi OS devices allows a network-adjacent attacker to abuse a path traversal flaw (CW
Cross-site session abuse in Ubiquiti UniFi OS lets a remote attacker who lures an authenticated operator to a malicious
EUVD-2026-41391
GHSA-ghgx-h467-6r25
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB