Cloudanix VulnDB

CVE-2026-34910

Critical · 10.0 CISA KEV

CVSS

10.0

EPSS

45.8%

Published

May 22, 2026

CISA due date

Jun 26, 2026

Cloudanix analysis

Act now SSVC: Attend

Attackers can remotely take control of affected UniFi network devices if they can reach them, potentially disrupting or compromising the networks those devices manage.

Active In The Wild Wormable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Trivial
Impact
Full Compromise
Component
Firmware
Class
Command Injection
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

CVE-2026-34910 is a network-exploitable improper input validation flaw in UniFi OS that allows unauthenticated remote command injection. Because the CVSS vector is AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, an attacker can reach the vulnerable service over the network, supply crafted input that is interpreted as operating-system commands, and potentially execute those commands with the privileges of the affected UniFi OS component. Successful exploitation can lead to full compromise of the UniFi OS appliance or server, including configuration access, credential theft, lateral movement, persistence, traffic manipulation, and service disruption.

Why it matters to the business

This is a critical, actively exploited vulnerability affecting UniFi OS servers and multiple UniFi gateway, router, Dream Machine, Dream Wall, Express, and NVR product lines. A compromised UniFi OS device can give an attacker control over core networking, routing, firewall, VPN, wireless, and video-management functions, creating risk of outage, surveillance blind spots, credential exposure, network interception, and broader enterprise compromise. The vulnerability is listed in CISA KEV with a remediation due date of 2026-06-26, has high EPSS likelihood, and is reported as actively exploited in the wild, so internet-exposed or broadly reachable management interfaces should be treated as urgent remediation targets.

How an attack unfolds

An attacker first identifies a UniFi OS device or server with a reachable vulnerable management or service endpoint. They then send a specially crafted request containing command metacharacters or malformed input that the application fails to validate correctly. Instead of treating the input as data, the vulnerable component passes part of it to an operating-system command interpreter, causing attacker-supplied commands to run on the device. The attacker may use an initial lightweight command to confirm code execution, then retrieve a payload, create a reverse shell, add persistence, dump configuration and credentials, modify firewall or network settings, disable logging, pivot to internal hosts, or use the appliance as a staging point for further attacks. Because exploitation is unauthenticated and active in the wild, opportunistic scanning and rapid post-exploitation should be expected.

How to fix it

Upgrade all affected UniFi OS devices and servers to vendor-provided fixed releases as soon as available. No exact fixed versions were provided in the input, so administrators should consult the official UI/Ubiquiti security advisory and release notes for the relevant product line and confirm that the installed UniFi OS and firmware builds are newer than the vulnerable versions. Prioritize internet-facing UniFi OS servers, cloud gateways, Dream Machine, Dream Router, Dream Wall, Express, Enterprise Fortress Gateway, and UniFi NVR/NVR Pro devices. If immediate patching is not possible, restrict management and service interfaces to trusted administrative networks or VPN-only access, block unsolicited inbound access from the internet, enforce firewall allowlists, disable unnecessary remote access features, rotate administrative credentials and API tokens after patching, and monitor for signs of command execution. Because the vulnerability can result in full appliance compromise, systems with evidence of exploitation should be rebuilt or factory-reset from trusted firmware, restored from known-good configuration, and have all credentials, certificates, VPN keys, and tokens rotated.

How to confirm the fix worked

Confirm the installed UniFi OS and device firmware versions on every affected product and compare them against the vendor advisory for CVE-2026-34910. Validate that no UniFi OS management or vulnerable service endpoints are reachable from untrusted networks unless explicitly required and protected by compensating controls. Use external scanning from an untrusted network to verify that administrative interfaces are not exposed. Review firewall rules, NAT rules, and cloud/remote-access settings to ensure only authorized sources can reach management services. After patching, confirm the device reports the expected updated build, reboot if required, and verify normal operation of routing, switching, wireless, VPN, and NVR services. Where safe and authorized, perform a controlled vulnerability assessment using a non-destructive check from a reputable scanner or vendor-provided validation method rather than attempting live command injection payloads in production.

Typical attack path

  1. Scan the internet or internal address ranges for reachable UniFi OS management or service interfaces.
  2. Fingerprint the target as an affected UniFi OS server, gateway, Dream Machine, Dream Router, Dream Wall, Express, or NVR device.
  3. Send a crafted request to the vulnerable endpoint containing shell metacharacters or command-substitution syntax.
  4. Execute a benign command such as an identity, hostname, DNS, or outbound callback test to verify command execution.
  5. Download or stage additional tooling using built-in utilities such as curl, wget, busybox, sh, or nc where present.
  6. Establish interactive access, reverse shell, or recurring command execution.
  7. Collect UniFi OS configuration, credentials, tokens, VPN material, device inventories, and network topology information.
  8. Modify network, firewall, routing, VPN, wireless, or camera-management settings to support persistence, interception, disruption, or lateral movement.
  9. Attempt to erase traces by clearing logs, killing security processes, or removing temporary payloads.

How to detect it

Investigate UniFi OS application logs, system logs, firewall/NAT logs, reverse proxy logs, IDS/IPS alerts, DNS logs, DHCP logs, authentication logs, and endpoint/network telemetry for signs of command injection and post-exploitation. Look for HTTP requests to UniFi OS services containing shell metacharacters, command substitution, encoded payloads, or attempts to invoke tools such as sh, bash, busybox, curl, wget, nc, tftp, python, or perl. Review process execution telemetry, where available, for web or UniFi OS service processes spawning shells or system utilities. Check for unexpected outbound connections from UniFi OS devices to unfamiliar IP addresses or domains, especially immediately after suspicious HTTP requests. Examine filesystem and configuration changes for payloads in temporary directories, modified startup scripts, added SSH keys, new local users, altered firewall/VPN/routing settings, disabled services, cleared logs, or suspicious cron/systemd entries. Because exploitation is active in the wild, include at least the period from publication onward and any period when the management interface was exposed to untrusted networks. If compromise is suspected, preserve logs and disk artifacts before factory reset or firmware recovery.

  • /bin/sh -c
  • /bin/bash -c
  • busybox wget
  • busybox nc
  • wget http://
  • wget https://
  • curl http://
  • curl https://
  • chmod +x /tmp/
  • chmod 777 /tmp/
  • /tmp/.
  • /var/tmp/.
  • /dev/shm/
  • nc -e
  • netcat -e
  • mkfifo /tmp/
  • bash -i >&
  • sh -i >&
  • 0>&1
  • 2>&1
  • ;wget
  • ; curl
  • |wget
  • | curl
  • `wget
  • `curl
  • $(wget
  • $(curl
  • %3bwget
  • %3bcurl
  • %7cwget
  • %7ccurl
  • %60wget
  • %60curl
  • %24%28wget
  • %24%28curl
  • /etc/crontab
  • /var/spool/cron
  • /etc/rc.local
  • /etc/init.d/
  • /root/.ssh/authorized_keys
  • /home/*/.ssh/authorized_keys
  • history -c
  • rm -f /var/log/
  • truncate -s 0 /var/log/

What your security team should do

  • Immediately inventory all UniFi OS servers and affected UI/Ubiquiti gateways, routers, Dream Machine, Dream Wall, Express, Enterprise Fortress Gateway, and NVR appliances.
  • Prioritize remediation for internet-facing or broadly reachable UniFi OS management interfaces because exploitation is unauthenticated, low complexity, KEV-listed, and active in the wild.
  • Patch or upgrade to the vendor-fixed UniFi OS or firmware release as soon as available; track the CISA KEV remediation deadline of 2026-06-26 as the latest acceptable date for covered environments.
  • Temporarily restrict management access to trusted administrative networks or VPN-only access and block direct internet access to UniFi OS management services.
  • Hunt for prior exploitation before and after patching, focusing on suspicious shell execution, outbound callbacks, payload downloads, new users, modified network rules, and log tampering.
  • Rotate UniFi administrator passwords, API tokens, VPN secrets, certificates, SSH keys, and any credentials stored on or managed by potentially exposed appliances after remediation.
  • For devices with confirmed compromise, rebuild or factory-reset from trusted firmware rather than relying only on in-place cleanup.
  • Add monitoring for command-injection payload patterns in reverse proxy, firewall, WAF, UniFi OS, and system logs.
  • Review network segmentation so compromise of a UniFi OS appliance does not provide unrestricted access to internal management, identity, backup, or server networks.

The record

A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi OS devices to execute a Command Injection.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities