Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsStudyTraining
ProjectsChecklistsAI RankingsNewsletterStatusTagsAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Study
Training
Projects
Checklists
AI Rankings
Newsletter
Status
Tags
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1154+ Articles
126+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-34910 — UniFi OS Unauthenticated Command Injection
CVE-2026-34910 — UniFi OS Unauthenticated Command Injection

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-34910

CVE-2026-34910 — UniFi OS Unauthenticated Command Injection

A CVSS 10.0 command injection vulnerability in UniFi OS allows any network-accessible attacker with no credentials to execute arbitrary OS commands,...

Dylan H.

Security Team

May 22, 2026
7 min read

Affected Products

  • Ubiquiti UniFi OS (all unpatched versions)

Executive Summary

A critical unauthenticated command injection vulnerability (CVE-2026-34910) has been disclosed in UniFi OS — the firmware platform powering Ubiquiti's gateways, cloud keys, and UniFi Dream Machine devices. Unlike the companion CVE-2026-33000 (which requires high privileges), this flaw is exploitable by any network-accessible attacker with no credentials whatsoever, making it the most severe of the UniFi OS vulnerabilities disclosed on May 22, 2026.

CVSS Score: 10.0 (Critical)

An attacker with network connectivity to the device's management interface can send a single crafted request to trigger arbitrary OS command execution. The attack requires no prior authentication, no user interaction, and has low complexity — conditions that make mass exploitation trivial and automated scanning campaigns highly effective.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-34910
CVSS Score10.0 (Critical)
TypeCommand Injection (Improper Input Validation)
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
Confidentiality ImpactHigh
Integrity ImpactHigh
Availability ImpactHigh
Patch AvailableCheck Ubiquiti Security Advisory

Affected Products

ProductAffected ScopeRemediation
Ubiquiti UniFi OSAll unpatched firmware versionsApply vendor security update immediately
UniFi Dream Machine / Pro / SE / UltraPre-patch firmwareUpdate via UniFi Network Application
UniFi Cloud GatewayPre-patch firmwareFirmware update required
UniFi Cloud Key Gen 2 / PlusPre-patch firmwareFirmware update required

Technical Analysis

Root Cause

CVE-2026-34910 shares the same root cause class as CVE-2026-33000 — improper input validation leading to command injection. However, the critical distinction is that the vulnerable component in CVE-2026-34910 is accessible prior to authentication. The UniFi OS service processes attacker-controlled input in a pre-auth code path, passing it unsanitized to an OS command execution function.

This means the entire authentication layer is bypassed: the vulnerability exists in a handler that runs before any credential check occurs.

Attack Flow

1. Attacker discovers a UniFi OS device via port scan or Shodan/Censys enumeration
   (management interface on TCP 443 — no authentication required)
2. Attacker sends a single crafted HTTP/HTTPS request to the vulnerable pre-auth endpoint
   with OS command payload embedded in a parameter (e.g., filename, device name field)
3. UniFi OS passes the unsanitized parameter to an OS shell command without authentication check
4. Injected commands execute on the device's host OS (typically as root or a privileged service)
5. Attacker achieves:
   - Reverse shell access
   - SSH key injection for persistent access
   - VPN/credential exfiltration
   - Network traffic interception
6. Full device and network compromise — zero credentials required

Mass Exploitation Risk

The combination of unauthenticated access, low complexity, and network-level attack vector makes CVE-2026-34910 ideal for automated mass exploitation:

  • Shodan/Censys exposure: UniFi management interfaces exposed to the internet are trivially discoverable
  • Scripted exploitation: A single HTTP request is all that is needed — trivial to automate in scanning campaigns
  • Botnet recruitment: Compromised UniFi devices have been historically recruited into botnets due to their always-on nature and trusted network position
  • Ransomware pre-positioning: Compromise of the network gateway enables attacker VLAN bypass and lateral movement to all connected hosts

Impact Assessment

Impact AreaDescription
Unauthenticated RCEFull OS command execution with no credentials required
Full Device TakeoverRoot-level access to the UniFi OS gateway
Network-wide Lateral MovementPivot through the compromised gateway to all connected hosts
Traffic InterceptionDNS manipulation, MITM for all client traffic
Credential HarvestingVPN keys, RADIUS secrets, admin passwords extracted
Persistent BackdoorSSH key injection or cron-based persistence survives reboots
Botnet / DDoS RecruitmentDevice co-opted for attack infrastructure

Immediate Remediation

Step 1: Apply Firmware Patch — Emergency Priority

This vulnerability warrants emergency patching. Apply the firmware update immediately:

# Check current firmware via SSH (if accessible)
ubnt-device-info firmware
 
# Apply firmware via UniFi Network Application:
# Settings → System → Updates → Update Firmware
# Or download directly from ui.com/download and apply via device UI

Step 2: Emergency Network Isolation (Pre-Patch)

If immediate patching is not possible, isolate the device's management interface:

# IMMEDIATELY block external access to UniFi management ports
# Apply upstream firewall rules to block TCP 443, TCP 22, UDP 10001
# from any untrusted network source
 
# Example upstream ACL (on your perimeter firewall):
# DENY ANY → <UniFi_Device_IP> TCP 443
# DENY ANY → <UniFi_Device_IP> TCP 22
# PERMIT 10.10.10.0/24 → <UniFi_Device_IP> ANY  (management hosts only)
 
# If the UniFi management port is internet-exposed, this is a P0 emergency

Step 3: Determine Exposure Window

# Check if the management interface has been reachable from untrusted networks
# Review firewall logs for inbound connections to the device's management IP
# Check device access logs for unusual HTTP requests
grep "\.\.\|exec\|cmd\|shell\|wget\|curl" /var/log/nginx/access.log 2>/dev/null
grep "\.\.\|exec\|cmd\|shell\|wget\|curl" /var/log/lighttpd/access.log 2>/dev/null

Step 4: Post-Patch Credential Rotation

# After patching, assume full compromise if device was internet-exposed
# 1. Rotate all admin account passwords
# 2. Rotate VPN pre-shared keys (all site-to-site tunnels)
# 3. Rotate RADIUS/802.1X secrets
# 4. Regenerate TLS certificates
# 5. Revoke SSH host keys and regenerate
# 6. Review all firewall rules for unauthorized modifications
# 7. Audit all connected device configurations for tampering

Detection Indicators

IndicatorDescription
Pre-auth HTTP requests with injection payloads in access logsActive exploitation attempt
Outbound connections from UniFi device to unknown IPs post-requestReverse shell establishment
New entries in /root/.ssh/authorized_keysSSH persistence after exploitation
New cron jobs or modified system filesPost-exploitation persistence
Unexpected DNS configuration changesTraffic redirection setup
Firewall rules altered or removedAttacker opening lateral movement paths
New admin accounts in UniFi Network UIPost-exploitation account creation
Unusual high-privilege process spawned by web serviceCommand execution evidence

Post-Remediation Checklist

  1. Apply firmware patch immediately — treat as emergency if management interface is internet-exposed
  2. Assume full compromise if device was reachable from untrusted networks without patching
  3. Rotate every secret — admin passwords, VPN PSKs, RADIUS secrets, TLS certificates, SSH keys
  4. Audit all firewall rules — restore any rules that were modified or deleted
  5. Inspect connected device configs — access points, switches, cameras may have been reconfigured
  6. Check DNS settings — restore if redirected by attacker
  7. Review DHCP leases and VLAN assignments — verify no rogue devices were granted access
  8. Engage incident response if exploitation is suspected — network forensics required
  9. Patch companion CVEs — CVE-2026-33000, CVE-2026-34908, CVE-2026-34909 affect the same platform

References

  • NVD — CVE-2026-34910
  • Ubiquiti Security Advisory Portal
  • Related: CVE-2026-33000 — UniFi OS Command Injection High-Privilege (CVSS 9.1)
  • Related: CVE-2026-34908 — UniFi OS Improper Access Control (CVSS 10)
  • Related: CVE-2026-34909 — UniFi OS Path Traversal Account Takeover (CVSS 10)
#CVE-2026-34910#UniFi#Ubiquiti#Command Injection#RCE#Unauthenticated#Network Security#Improper Input Validation

Related Articles

UniFi OS Command Injection via Improper Input Validation — CVE-2026-33000

A CVSS 9.1 command injection vulnerability in UniFi OS devices allows a network-adjacent attacker with high privileges to execute arbitrary commands on...

6 min read

CVE-2026-34909 — UniFi OS Path Traversal Leading to Account Takeover

A CVSS 10.0 path traversal vulnerability in UniFi OS allows an unauthenticated network attacker to read arbitrary files, including sensitive account files...

6 min read

UniFi OS Improper Access Control — Unauthorized System Changes — CVE-2026-34908

A CVSS 10.0 improper access control flaw in UniFi OS allows any network-accessible attacker to make unauthorized changes to the underlying system with no...

6 min read
Back to all Security Alerts