Automated Threat Modeling

UniFi OS Command Injection via CVE-2026-33000: Brief Summary of a Critical Input Validation Flaw

A brief summary of CVE-2026-33000, a CVSS 9.1 command injection vulnerability in Ubiquiti UniFi OS Server caused by improper input validation, with patch information, affected versions, and context on the rest of the Bulletin 064 disclosure.

CVE Analysis

9 min read

ZeroPath CVE Analysis
ZeroPath CVE Analysis

2026-05-21

UniFi OS Command Injection via CVE-2026-33000: Brief Summary of a Critical Input Validation Flaw
Experimental AI-Generated Content

This CVE analysis is an experimental publication that is completely AI-generated. The content may contain errors or inaccuracies and is subject to change as more information becomes available. We are continuously refining our process.

If you have feedback, questions, or notice any errors, please reach out to us.

[email protected]

Introduction

Ubiquiti's latest security advisory dropped five critical vulnerabilities at once. Three of them scored a perfect CVSS 10.0, but for defenders thinking about post-compromise persistence, the one to worry about is CVE-2026-33000. This command injection flaw in UniFi OS Server, scored at CVSS 9.1, lets an attacker with administrative privileges and network access execute arbitrary operating system commands on the device. That could give the attacker root-level control over network infrastructure that manages gateways, switches, access points, and surveillance cameras.

The researcher V3rlust reported the vulnerability through Ubiquiti's HackerOne bug bounty program, and Ubiquiti disclosed it on May 21, 2026, as part of Security Advisory Bulletin 064. Censys observed 87,196 exposed UniFi Network Application hosts in recent scans, so the potential blast radius of this flaw and its companion vulnerabilities is substantial.

Technical Information

Root Cause: CWE-20 Improper Input Validation

CVE-2026-33000 is rooted in CWE-20 (Improper Input Validation), which MITRE defines as occurring when a product "does not validate or incorrectly validates input that can affect the control flow or data flow of a program." Here the flaw takes the form of a classic OS command injection, where user-supplied input reaches a system-level command interpreter without adequate sanitization.

The CVSS v3.1 vector string is CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H. It breaks down as follows:

  • Attack Vector (AV:N): The vulnerability is exploitable over the network, so any attacker who can reach the UniFi OS management interface can attempt exploitation.
  • Attack Complexity (AC:L): No special conditions or race conditions are required. The injection is straightforward once the attacker has access.
  • Privileges Required (PR:H): The attacker must hold elevated, administrative-level privileges on the UniFi OS device or within the UniFi management ecosystem.
  • Scope (S:C): "Changed," so successful exploitation affects resources beyond the vulnerable component itself. That fits command injection on a network gateway or controller, where a compromise can cascade to managed devices and network traffic.
  • Impact (C:H/I:H/A:H): All three are rated High, which means full loss of confidentiality, integrity, and availability is possible.

Attack Flow

Based on the advisory details and the vulnerability classification, exploitation follows this pattern:

  1. The attacker first needs administrative credentials for the UniFi OS device. These could come from credential theft, phishing, brute force against weak passwords, or from chaining one of the three unauthenticated RCE vulnerabilities (CVE-2026-34908, CVE-2026-34909, CVE-2026-34910) disclosed in the same bulletin.

  2. The attacker then interacts with a management interface or API endpoint on the UniFi OS Server that accepts user input. Ubiquiti has not publicly disclosed the specific endpoint, consistent with its practice of limiting technical detail in advisories.

  3. Into that input, the attacker places shell metacharacters or command substitution syntax (such as semicolons, pipes, backticks, or $(...) sequences) that the application fails to sanitize or reject.

  4. The application passes the unsanitized input to a system-level command execution function. The injected commands execute with the privileges of the UniFi OS process, which on these devices typically runs with root or equivalent permissions.

  5. With command execution on the device, the attacker can intercept network traffic, manipulate DNS settings, pivot laterally across managed networks, exfiltrate configuration data (including credentials for managed devices), or establish persistent backdoor access.

The Bulletin 064 Context: Chaining Risk

CVE-2026-33000 is one of five vulnerabilities that Bulletin 064 addresses at once:

CVE IDCVSS ScoreDiscovererKey Characteristic
CVE-2026-330009.1V3rlustCommand injection, requires high privileges
CVE-2026-3490810.0Not specifiedUnauthenticated RCE
CVE-2026-3490910.0Not specifiedUnauthenticated RCE
CVE-2026-3491010.0John CarrollUnauthenticated RCE
CVE-2026-349117.7Hakai SecurityAccess control / path traversal

Having authenticated and unauthenticated flaws in the same firmware version compounds the risk. An attacker could use one of the three unauthenticated RCE vulnerabilities to gain initial access, then use CVE-2026-33000 for deeper persistence or privilege escalation on the compromised device. The "high privileges required" constraint on CVE-2026-33000 protects far less when the same firmware contains three separate paths to unauthenticated remote code execution.

NVD Enrichment Status

As of the publication date, the NVD record for CVE-2026-33000 has not yet been fully enriched. CPE entries, version-specific affected product mappings, and the full CVSS vector have not been published on the NVD page. The only reference listed is the Ubiquiti Security Advisory Bulletin 064 URL, sourced from HackerOne.

Patch Information

Ubiquiti has released patched firmware as part of Security Advisory Bulletin 064, published on May 21, 2026. The fix ships as a firmware update. UniFi OS is closed source, so no source-level code diff is available.

CVE-2026-33000 itself affects a single product:

  • UniFi OS Server: Version 5.0.6 and earlier is vulnerable.
  • Fix: Update to UniFi OS Server version 5.0.8 or later.

The four companion CVEs in Bulletin 064 affect a much broader range of UniFi OS hardware, including UDM, UDM Pro, UDR, Cloud Keys, NVRs, and others. Those companion CVEs require updates to:

Device FamilyMinimum Patched Version
Most gateways and consoles5.1.12
NAS devices5.1.10
UDM Beast5.1.11

Administrators running any of these device families should apply all relevant updates from the bulletin together, because the fixes for the broader set of issues are bundled into these releases.

According to community discussion, the patched firmware appears to include a startup-time integrity check. During boot, a MongoDB query searches stored admin parameters for URL-encoded path traversal patterns (e.g., %2F), likely to detect signs of prior exploitation. Users who observed nreturned:0 in their mongod.log output after updating can treat that as a positive indicator that no malicious payloads were persisted in their configuration database.

Community reports also indicate that updating to UniFi OS 5.1.12 automatically updates bundled applications (Network, Protect) to their latest versions, a behavior introduced in version 5.1.11. That keeps every bundled application patched, but it may override administrators who prefer to control application versions themselves.

Ubiquiti published direct links to the patched firmware releases for each device family in the advisory.

Compensating Controls

For organizations that cannot apply the firmware updates immediately:

  1. Network segmentation: Isolate UniFi OS devices on dedicated management VLANs. Restrict access to the management interface to trusted internal IP ranges only. The UniFi Network Application should never be directly exposed to the internet.
  2. Access control hardening: Review and minimize the number of administrative accounts. Enforce strong, unique passwords for all privileged users.
  3. VPN: Put any remote management of UniFi OS consoles behind a VPN, and block direct internet access to management interfaces.
  4. Monitoring: Watch for unusual administrative actions and unexpected command execution on UniFi OS devices during the patching window.

Version Visibility Challenge

The UniFi Network Application does not expose its version number externally. Build hashes in static asset paths vary per version, and no public mapping of hashes to versions is readily available. This makes it hard for defenders to distinguish vulnerable instances from patched ones by external observation alone. Organizations should verify patch status through the internal UniFi management dashboard rather than relying on external scanning.

Affected Systems and Versions

Based on the advisory and patch information, UniFi OS Server version 5.0.6 and earlier is confirmed vulnerable to CVE-2026-33000. The fix is version 5.0.8 or later.

The companion CVEs in Bulletin 064 also affect UniFi OS hardware consoles (UDM series, UCG series, UNVR devices, Cloud Keys, and others). Specific CPE entries have not yet been published on the NVD.

Vendor Security History

Ubiquiti has a documented pattern of input validation vulnerabilities across the UniFi product ecosystem, with CWE-20 recurring across multiple product lines and years:

BulletinDateVulnerability TypeSeverity
Bulletin 038March 2024Command Injection in Self-Hosted UniFi Network ServerCritical
Bulletin 051July 2025Improper Input Validation in UniFi Access devicesCritical
Bulletin 062March 2026Improper Input Validation in UniFi Network ServerUnauthorized Account Access
Bulletin 063March 2026Path Traversal in UniFi Network Application (CVE-2026-22557)CVSS 10.0
Bulletin 063March 2026NoSQL Injection in UniFi Network Application (CVE-2026-22558)Injection
Bulletin 064May 2026Command Injection + RCE + Access Control (5 CVEs)CVSS 9.1 to 10.0

Other vulnerabilities outside the bulletin sequence include CVE-2026-22563, a command injection vulnerability in UniFi Play PowerAmp and Audio Port, which shows how far the input validation weaknesses extend across the product line.

Ubiquiti consistently relies on external researchers reporting through HackerOne to discover these vulnerabilities, rather than catching them in internal security testing before release. That suggests its internal security assurance processes are under-resourced relative to the pace of feature development.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization