Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
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.

1451+ Articles
151+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • 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-47370: UniFi OS Command Injection via Improper Input Validation
CVE-2026-47370: UniFi OS Command Injection via Improper Input Validation

Critical Security Alert

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

SECURITYCRITICALCVE-2026-47370

CVE-2026-47370: UniFi OS Command Injection via Improper Input Validation

A critical CVSS 9.9 command injection vulnerability in Ubiquiti UniFi OS allows a low-privileged network attacker to execute arbitrary commands within...

Dylan H.

Security Team

June 12, 2026
5 min read

Affected Products

  • Ubiquiti UniFi OS devices and instances (unpatched versions)

Executive Summary

A critical command injection vulnerability (CVE-2026-47370) has been disclosed in Ubiquiti UniFi OS, affecting devices and instances running the UniFi OS platform. The vulnerability carries a CVSS score of 9.9 (Critical) and allows a malicious actor with network access and low privileges to exploit improper input validation to execute arbitrary commands within UniFi OS devices or instances.

CVSS Score: 9.9 (Critical) Published: 2026-06-12 Related CVE: CVE-2026-47369 (Privilege Escalation in UniFi OS — same disclosure batch)

This is the second critical UniFi OS vulnerability disclosed on 2026-06-12, alongside CVE-2026-47369 (privilege escalation). Together, they represent a severe attack surface in one of the most widely deployed prosumer and enterprise network management platforms.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-47370
CVSS Score9.9 (Critical)
TypeCommand Injection (Improper Input Validation)
Attack VectorNetwork
Privileges RequiredLow
User InteractionNone
Affected PlatformUniFi OS (Ubiquiti devices and instances)
Published2026-06-12

Affected Products

ProductComponentStatus
UniFi Dream Machine (all models)UniFi OSVulnerable — apply latest firmware
UniFi Dream RouterUniFi OSVulnerable — apply latest firmware
UniFi Cloud GatewayUniFi OSVulnerable — apply latest firmware
UniFi OS Instances (self-hosted)UniFi OSVulnerable — apply latest update

Technical Details

Command Injection in Network Appliances

Command injection in network appliances is especially dangerous because these devices often run as root or with elevated OS privileges, sit at critical network chokepoints, and are rarely monitored with the same rigor as servers. An attacker who achieves command injection on a UniFi OS device can manipulate all traffic passing through it.

How CVE-2026-47370 Works

The vulnerability stems from improper input validation within UniFi OS's internal processing of user-supplied parameters. These parameters are passed to OS-level command execution contexts without adequate sanitization — allowing an attacker to inject additional shell metacharacters or command sequences.

1. Attacker with low-privilege network access sends crafted input to a vulnerable UniFi OS endpoint
2. UniFi OS processes the input and passes it to an internal command execution routine
3. Shell metacharacters in the input trigger execution of attacker-controlled commands
4. Commands execute within UniFi OS context (typically elevated privileges)
5. Attacker achieves full control of the UniFi device at the OS level

Relationship to CVE-2026-47369

CVE-2026-47369 enables privilege escalation within UniFi OS, while CVE-2026-47370 enables command injection. When chained:

CVE-2026-47369 (Privilege Escalation) → CVE-2026-47370 (Command Injection)
= Full unauthenticated-equivalent OS-level takeover from any low-privilege account

Why CVSS 9.9?

  • Network attack vector with low privilege requirement
  • No user interaction needed
  • Command execution within UniFi OS affects the full device management plane
  • Near-complete confidentiality, integrity, and availability impact across the device and managed network

Impact Assessment

Impact AreaDescription
Arbitrary OS Command ExecutionExecute any command within UniFi OS with elevated privileges
Network Policy ManipulationModify firewall rules, routing, DNS, or VPN configurations
Traffic InterceptionConfigure packet capture or port mirroring to intercept all network traffic
PersistenceAdd cron jobs, SSH keys, or startup scripts for long-term access
Lateral MovementAccess all network segments routed through the device
Combined Exploit ChainWhen chained with CVE-2026-47369, enables full takeover from a single low-privilege account

Recommendations

Immediate Actions

  1. Apply Ubiquiti firmware updates — check UniFi OS update settings for the latest available patch
  2. Restrict management plane access — ensure UniFi OS is not reachable from untrusted networks
  3. Audit for signs of exploitation — review OS-level command history and UniFi audit logs
  4. Treat both CVE-2026-47369 and CVE-2026-47370 as a combined risk — patch addresses both

Mitigation Until Patched

- Place UniFi management interface behind a VPN or jump host
- Block TCP 443, 8080, 8443 to UniFi devices from untrusted subnets at a perimeter firewall
- Monitor for unusual command execution (if OS-level logging is accessible)
- Consider temporarily disabling remote management features if not needed
- Apply network-level egress controls to detect C2 callbacks from the UniFi device

Detection Indicators

IndicatorDescription
Shell metacharacters in UniFi OS API request logsExploitation attempt signatures
Unexpected cron jobs or startup scripts on the devicePost-exploitation persistence
New SSH authorized_keys entries on the deviceBackdoor installation
Unusual egress connections from the UniFi deviceC2 or data exfiltration
Unexpected DNS resolver changesAttacker redirecting DNS traffic
UniFi audit log entries showing unauthorized config changesConfirmed post-exploitation activity

Post-Remediation Checklist

  1. Confirm UniFi OS firmware is updated to the patched version (check Ubiquiti advisory for version details)
  2. Review OS-level command history on the device if accessible
  3. Audit UniFi configuration for unauthorized changes to firewall, routing, DNS, or VPN
  4. Rotate all UniFi credentials and Ubiquiti SSO account passwords
  5. Verify no unauthorized SSH keys or cron jobs exist on the device
  6. Confirm network segmentation is correct and management access is restricted
  7. Review firewall/IDS logs for exploitation attempts prior to patching

References

  • NIST NVD — CVE-2026-47370
  • NIST NVD — CVE-2026-47369 (related)
  • Ubiquiti Security Advisories
  • UniFi OS Firmware Updates
  • OWASP — Command Injection
#Vulnerability#CVE#UniFi#Ubiquiti#Command Injection#RCE#Network Security

Related Articles

CVE-2026-47369: UniFi OS Privilege Escalation via Improper Input Validation

A critical CVSS 9.9 privilege escalation vulnerability in Ubiquiti UniFi OS allows a low-privileged network attacker to escalate privileges within UniFi...

5 min read

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,...

7 min read

CVE-2026-47367: UID Enterprise Agent Command Injection via Improper Input Validation

A critical CVSS 9.9 command injection vulnerability in UID Enterprise Agent allows a low-privileged network attacker to execute arbitrary commands on the...

4 min read
Back to all Security Alerts