CVE-2026-54404: UniFi OS SQL Injection Privilege Escalation Vulnerability
A vulnerability in Ubiquiti UniFi OS allows attackers who already have network access and low-level user credentials to run specially crafted SQL commands that bypass normal security controls and gain administrative privileges. This affects a broad range of UniFi networking and video recording devices. An attacker would need existing credentials to exploit this—they cannot attack from outside the network or without logging in first.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.8 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-89
- Affected products
- 63 configuration(s)
- Published / Modified
- 2026-07-02 / 2026-07-10
NVD description (verbatim)
A malicious actor with access to the network and low privileges could exploit a series of authenticated SQL Injection vulnerabilities found in UniFi OS to escalate privileges within such UniFi OS devices or instances.
1 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-54404 is a series of authenticated SQL injection flaws (CWE-89) in UniFi OS that permit privilege escalation. The vulnerability requires network access and valid low-privilege credentials; an unauthenticated remote attack is not possible. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects high impact across confidentiality, integrity, and availability once an attacker has authenticated. The 'N' in AV indicates network-level accessibility, but the 'L' in PR mandates prior authentication, making this a lateral movement and privilege escalation risk rather than an unauthenticated remote code execution scenario.
Business impact
Organizations deploying UniFi devices as core networking or security infrastructure face elevated risk of insider-initiated or compromised-credential attacks leading to full administrative control. This could enable data exfiltration from managed networks, unauthorized configuration changes, or denial of service. The breadth of affected products—gateways, routers, video recorders, and cloud management appliances—means a single exploited credential could cascade across multiple trust zones. Environments relying on UniFi OS for campus or branch network segmentation should treat this as a priority containment issue.
Affected systems
Ubiquiti UniFi OS running on the following device families: UniFi Dream Machine (Beast variant), UniFi Dream Router (including Gen 7), UniFi Dream Wall, UniFi Express 7, UniFi CloudKey (standard, Plus, and Enterprise editions), Enterprise Fortress Gateway, UniFi Network Video Recorder (standard, Pro, Instant, and Gen 2 variants), Enterprise Network Video Recorder (standard and Core), UniFi Cloud Gateway (Ultra, Max, Industrial, and Fiber variants). Both firmware and hardware variants are affected. Verify specific firmware versions against Ubiquiti's official security advisory.
Exploitability
Exploitation requires two prerequisites: network access to an affected UniFi OS device and valid low-privilege user credentials. No special tools or advanced techniques are needed beyond crafting malicious SQL input through authenticated interfaces. The attack is deterministic (AC:L), requires no user interaction, and does not depend on specific configurations. Insider threats, compromised service accounts, and credential reuse across UniFi deployments significantly increase practical exploitability. The vulnerability has not been designated for inclusion in CISA's Known Exploited Vulnerabilities catalog as of the advisory date.
Remediation
Apply security patches released by Ubiquiti for UniFi OS. Verify the specific patched firmware versions from Ubiquiti's security advisory and plan a phased rollout across your device fleet. Additionally, restrict network access to UniFi OS management interfaces via firewall rules and network segmentation. Enforce strong password policies and disable unnecessary user accounts. Consider implementing additional authentication (such as network-level access controls or VPN gatekeeping) for administrative access to UniFi devices.
Patch guidance
Consult Ubiquiti's official security advisory for the specific patched firmware versions applicable to each device model and existing firmware revision. Schedule patching during a maintenance window to avoid service disruption, particularly for devices managing production network traffic or security camera feeds. Test patches in a lab environment first to ensure compatibility with your deployment. Prioritize devices that handle traffic for sensitive network segments or store critical logs. Some devices may require manual intervention to install firmware updates; plan accordingly for remote or geographically dispersed installations.
Detection guidance
Monitor UniFi OS audit logs and database activity for suspicious SQL-like patterns in authenticated API requests or query parameters, particularly involving administrative tables or user privilege records. Check for unexpected privilege escalations or new administrator accounts appearing without change management approval. Network-based detection should flag unusual query patterns to UniFi OS API endpoints coming from internal IPs with low-privilege credentials. Baseline normal administrative access patterns first to reduce false positives. If your SIEM integrates with UniFi logging, look for authentication anomalies or failed/successful privilege modifications.
Why prioritize this
This vulnerability merits immediate prioritization because it combines a high CVSS score (8.8), broad product scope across critical infrastructure roles, and a low barrier to exploitation for insiders or attackers with compromised credentials. Unlike remote unauthenticated flaws, privilege escalation vulnerabilities are often overlooked in patching schedules despite their ability to unlock full system compromise. The attack surface spans network gateways, video surveillance systems, and cloud management appliances—failure to patch could simultaneously expose multiple trust boundaries.
Risk score, explained
The CVSS 3.1 score of 8.8 (HIGH) reflects the combination of network-level accessibility (AV:N), low attack complexity (AC:L), high impact to confidentiality, integrity, and availability (C:H/I:H/A:H), and no special privileges for post-exploitation (S:U). The requirement for low-privilege authentication (PR:L) prevents a maximum score but still indicates a severe vulnerability. The threat is materialized once an attacker gains initial low-level access—a realistic scenario in organizations with multiple UniFi users or where service accounts are reused. For organizations managing UniFi infrastructure as trust-critical, this should be treated as a 9+ equivalent in operational risk despite the numerical CVSS.
Frequently asked questions
Can this vulnerability be exploited without already being logged into the UniFi device?
No. The vulnerability requires valid low-privilege credentials and network access to an authenticated interface. An attacker cannot exploit this from outside without first obtaining legitimate credentials or compromising an existing user account. This makes it a privilege escalation and lateral movement risk rather than a direct remote attack vector.
Does the vulnerability affect UniFi Cloud, or only on-premises UniFi OS devices?
The advisory lists both firmware (cloud-based management) and hardware variants across multiple device families. Verify with Ubiquiti whether cloud-hosted UniFi instances are affected; the broad product list suggests both deployment models should be reviewed. Check your specific deployment topology and Ubiquiti's guidance for cloud-versus-on-premises risk.
What should I do if I cannot patch immediately?
Implement compensating controls: restrict network access to UniFi management interfaces via firewall rules, disable unnecessary user accounts, enforce strong passwords, and monitor for suspicious database activity or privilege escalations. Segment UniFi devices on isolated VLANs with restricted east-west traffic. These measures reduce the likelihood of exploitation while you plan and execute patching.
How do I know if I have been exploited?
Review audit logs and database activity for unauthorized privilege escalations, new administrator accounts, or unexpected SQL-like queries in authenticated sessions. Check for unauthorized configuration changes or access to sensitive data. If available, correlate UniFi logs with your SIEM for authentication anomalies or privilege modifications. Engage your security team or a third party for log forensics if a breach is suspected.
This analysis is based on vulnerability information published as of July 2026. Specific patch versions, affected firmware builds, and remediation timelines must be verified against Ubiquiti's official security advisory and product release notes. No exploit code or proof-of-concept is provided herein. Organizations should conduct their own risk assessment based on their specific UniFi deployment topology, user base, and network controls. SEC.co makes no warranty regarding the completeness or currency of this intelligence and recommends direct engagement with Ubiquiti support for deployment-specific guidance. Source: NVD (public-domain), retrieved 2026-08-11. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-56841HIGHUniFi Protect SQL Injection Privilege Escalation (CVSS 8.8)
- CVE-2016-20062HIGHSQL Injection in Simply Poll 1.4.1 WordPress Plugin - Unauthenticated Data Theft
- CVE-2016-20063HIGHSQL Injection in Single Personal Message 1.0.3 – Credential & Data Theft Risk
- CVE-2016-20065HIGHUnauthenticated SQL Injection in Product Catalog 8 WordPress Plugin
- CVE-2016-20068HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2016-20069HIGHUnauthenticated SQL Injection in WordPress Booking Calendar Contact Form 1.0.23
- CVE-2016-20071HIGHCritical SQL Injection in WordPress 404 Redirection Manager Plugin v1.0
- CVE-2016-20072HIGHBBS e-Franchise WordPress Plugin SQL Injection – Remote Data Exfiltration Risk