Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2026-34910: Command Injection in Ubiquiti UniFi OS

Published May 22, 2026 · Updated 28 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS10.0Critical · v3.1
EPSS45.8%99th percentile
CISA KEVYesAdded Jun 23, 2026
In the wildActivePer CISA KEV
Vendor
Ui
IdentifiersCVE-2026-34910CWE-20 · Improper Input Validation

CVE-2026-34910 is an improper input validation vulnerability in Ubiquiti UniFi OS that permits arbitrary operating system command execution by an attacker with network access. The package-update functionality passes an insufficiently validated package name to a shell, allowing injected commands to execute with the vulnerable service's privileges. Chaining the flaw with CVE-2026-34908 and CVE-2026-34909 enables unauthenticated remote code execution with root privileges. Affected products include UniFi OS Server 5.0.6 and earlier and multiple gateway, console, NVR, and NAS families with product-specific vulnerable firmware versions. Ubiquiti addressed the vulnerability in Security Advisory Bulletin 064 on May 21, 2026. Exploitation in the wild has been observed, and CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on June 23, 2026.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary command execution, potentially compromising device confidentiality, integrity, and availability. The demonstrated unauthenticated exploit chain provides root-level control, enabling theft of stored credentials and configuration secrets, unauthorized administrative changes, malware deployment, persistence, and service disruption. Compromise of a UniFi management device can also facilitate manipulation of managed network infrastructure and lateral movement. Observed exploitation has included downloading and executing botnet malware and backdoors.

Mitigation

If you can’t patch tonight, do this now.

Remove public management-interface exposure and restrict access to dedicated administrative networks, controlled jump hosts, or trusted VPN connections. Block management access from untrusted network segments. Monitor for encoded traversal requests, suspicious package-update requests, unexpected shell or download processes, unauthorized administrator accounts, scheduled-task changes, and anomalous outbound connections. These controls reduce exposure but do not replace firmware updates.

Remediation

Patch, then assume compromise.

Apply the product-specific updates from Ubiquiti Security Advisory Bulletin 064 or a later supported release. Minimum fixed versions include UniFi OS Server 5.0.8; most affected gateway, console, Cloud Key, and NVR families, including UCG-Industrial and UNVR-G2 models, 5.1.12; UNAS models 5.1.10; UDM-Beast 5.1.11; and Express 4.0.14. Verify applicability and installed versions for each model. For confirmed compromises, isolate the device, preserve forensic evidence, rebuild from clean firmware, rotate exposed credentials and cryptographic secrets, and invalidate existing sessions. Updating firmware alone does not remove previously established persistence.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-34910-PoCRepository contains two security artifacts and supporting documentation: a Python exploit script (CVE-2026-34910.py) and a Nuclei template (CVE-2026-34908-unifi-auth-bypass.yaml), plus README and license. Because this repository includes a framework artifact, the main exploit logic is split between a Nuclei detection template for CVE-2026-34908 and a standalone Python PoC for CVE-2026-34910/CVE-2026-34909. The Python script is the primary offensive component. It disables TLS verification, accepts a target URL, and exposes three modes: `--check` to verify the auth bypass by requesting the internal `latest_package` handler through `/api/auth/validate-sso/..%2f..%2f..%2f`, direct command execution by injecting `evil;<command>` into the `pkg_name` query parameter with `by_cmd=true`, and `--read <path>` to retrieve arbitrary files through a traversal path under `/app-assets/users/`. The script treats HTTP 200 responses from the internal handler as success and includes a proof helper that attempts to create `/tmp/PWNED_34910` on the target. The Nuclei YAML is a detection-only template for CVE-2026-34908. It sends a single crafted GET request to `/api/auth/validate-sso/..%2f..%2f..%2fproxy/users/api/v2/ucs/update/latest_package` and matches on HTTP 200 plus response markers such as `pkg_name` and `required`, confirming unauthorized reachability of the internal handler without executing a payload. Overall purpose: demonstrate and operationalize a chain of UniFi OS vulnerabilities affecting pre-SAB-064 systems: CVE-2026-34908 auth bypass, CVE-2026-34909 arbitrary file read, and CVE-2026-34910 unauthenticated command injection RCE. The repository is not just a detector; it contains working exploit code capable of unauthenticated remote command execution and file disclosure against vulnerable UniFi OS Server targets.Boreas37 · Disclosed Aug 9, 2026 · Framework: nuclei · yaml · python · web · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
UiEnterprise Fortress Gateway Firmwareoperating_system
UiEnterprise Network Video Recorder Core Firmwareoperating_system
UiEnterprise Network Video Recorder Firmwareoperating_system
UiUnas 2 Firmwareoperating_system
UiUnas 4 Firmwareoperating_system
UiUnas Pro 4 Firmwareoperating_system
UiUnas Pro 8 Firmwareoperating_system
UiUnas Pro Firmwareoperating_system
UiUnifi Cloud Gateway Fiber Firmwareoperating_system
UiUnifi Cloud Gateway Industrial Firmwareoperating_system
UiUnifi Cloud Gateway Max Firmwareoperating_system
UiUnifi Cloud Gateway Ultra Firmwareoperating_system
UiUnifi Cloud Key Plus Firmwareoperating_system
UiUnifi Cloudkey Enterprise Firmwareoperating_system
UiUnifi Cloudkey Firmwareoperating_system
UiUnifi Dream Machine Beast Firmwareoperating_system
UiUnifi Dream Machine Firmwareoperating_system
UiUnifi Dream Machine Pro Firmwareoperating_system
UiUnifi Dream Machine Pro Max Firmwareoperating_system
UiUnifi Dream Machine Special Edition Firmwareoperating_system
UiUnifi Dream Router 5G Max Firmwareoperating_system
UiUnifi Dream Router 7 Firmwareoperating_system
UiUnifi Dream Router Firmwareoperating_system
UiUnifi Dream Wall Firmwareoperating_system
UiUnifi Express 7 Firmwareoperating_system
UiUnifi Network Video Recorder Firmwareoperating_system
UiUnifi Network Video Recorder G2 Firmwareoperating_system
UiUnifi Network Video Recorder G2 Pro Firmwareoperating_system
UiUnifi Network Video Recorder Instant Firmwareoperating_system
UiUnifi Network Video Recorder Pro Firmwareoperating_system
UiUnifi Os Serverapplication
FAQ

Frequently asked questions

Is CVE-2026-34910 exploited in the wild?
Yes. As of Oct 31, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 23, 2026.
Is there a public exploit for CVE-2026-34910?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-34910, the earliest disclosed Aug 9, 2026.
Is there a patch for CVE-2026-34910?
Apply the product-specific updates from Ubiquiti Security Advisory Bulletin 064 or a later supported release. Minimum fixed versions include UniFi OS Server 5.0.8; most affected gateway, console, Cloud Key, and NVR families, including UCG-Industrial and UNVR-G2 models, 5.1.12; UNAS models 5.1.10; UDM-Beast 5.1.11; and Express 4.0.14.
What products are affected by CVE-2026-34910?
Ui Unifi Os Server, Ui Enterprise Fortress Gateway Firmware, Ui Enterprise Network Video Recorder Core Firmware, Ui Enterprise Network Video Recorder Firmware, Ui Unas 2 Firmware, and at least 26 more.
How severe is CVE-2026-34910?
CVE-2026-34910 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 45.8% (99th percentile) as of Oct 31, 2026.
Activity feed

Recent activity

80 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+35 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware7Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity36Community discussion across Reddit, Mastodon, and other social sources.