Skip to main content
Vulnerability Database/CVE-2025-23164

CVE-2025-23164: Unifi Protect Auth Bypass Vulnerability

CVE-2025-23164 is an authentication bypass flaw in Unifi Protect Application that allows users to maintain unauthorized livestream access after links are disabled. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-23164 Overview

CVE-2025-23164 is a broken access control vulnerability in the Ubiquiti Unifi Protect Application version 5.3.41 and earlier. The flaw stems from a misconfigured access token mechanism tied to the "Share Livestream" feature. Recipients of a shared livestream link can retain access to the corresponding stream after the sharing link has been disabled by the owner. The weakness is categorized as [CWE-284] (Improper Access Control).

Critical Impact

Users who previously received a shared livestream link can continue to view the camera feed after the share is revoked, undermining the expected revocation workflow.

Affected Products

  • Ubiquiti Unifi Protect Application version 5.3.41
  • Ubiquiti Unifi Protect Application earlier than 5.3.41

Discovery Timeline

  • 2025-05-19 - CVE-2025-23164 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-23164

Vulnerability Analysis

The Unifi Protect Application implements a "Share Livestream" feature that generates a link allowing an external recipient to view a camera feed. The access token bound to that link is not properly invalidated server-side when the owner disables the share. As a result, the token remains valid for continued stream access.

An authenticated adversary with high privileges on the sharing side who distributes a share link retains the ability to view the stream later. The confidentiality impact is high because live video content remains accessible outside the authorized sharing window. Integrity and availability of the Unifi Protect Application itself are not affected.

Root Cause

The root cause is improper access control, specifically a lifecycle gap in the access token issued for shared livestreams. Disabling the share in the user interface updates the share state but does not revoke or expire the previously issued token on the server. The authorization check continues to accept the token for livestream endpoints.

Attack Vector

Exploitation requires network reachability to the Unifi Protect service and prior possession of a share link that was later disabled. No user interaction on the victim side is required once the link has been delivered. The attack complexity is high because the window and workflow depend on the owner issuing, then disabling, a share link while the recipient still holds the token. See the Ubiquiti Security Advisory Bulletin 047 for vendor details.

No verified exploitation code is published for CVE-2025-23164. The vulnerability is described in prose because no sanitized proof-of-concept is available in authoritative sources.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2025-23164

Indicators of Compromise

  • Livestream API requests presenting a share token after the corresponding share has been disabled in the Unifi Protect console.
  • Repeated access to the same livestream endpoint from an external IP that is not associated with an active, enabled share.
  • Session or token identifiers for shared streams observed in access logs beyond their expected sharing window.

Detection Strategies

  • Correlate share-link lifecycle events (enable, disable) with subsequent livestream access events tied to the same token or session.
  • Alert on livestream HTTP requests where the referenced share identifier is in a disabled state in the application database.
  • Baseline normal share-link viewer counts and flag deviations after a share has been disabled.

Monitoring Recommendations

  • Forward Unifi Protect Application access and audit logs to a centralized logging platform for retention and correlation.
  • Monitor outbound streaming bandwidth from Unifi Protect systems for anomalies after shares are revoked.
  • Review administrative actions on share links and track which external parties received each link.

How to Mitigate CVE-2025-23164

Immediate Actions Required

  • Upgrade the Unifi Protect Application to a version later than 5.3.41 as published in Ubiquiti Security Advisory Bulletin 047.
  • Audit all currently or previously shared livestream links and treat recipients as having continued access until patching is complete.
  • Rotate camera stream credentials and regenerate any shares that must remain active after upgrading.

Patch Information

Ubiquiti addressed CVE-2025-23164 in a Unifi Protect Application release subsequent to 5.3.41. Administrators should apply the fixed version listed in Ubiquiti Security Advisory Bulletin 047. Verify version strings in the Unifi Protect console after the update completes.

Workarounds

  • Avoid using the "Share Livestream" feature until the application has been upgraded to a fixed version.
  • Restrict network reachability of the Unifi Protect service to trusted networks or VPN clients to reduce exposure of share endpoints.
  • Revoke access at the network layer, for example by blocking recipient IP ranges, when a share must be disabled before patching is possible.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.