BreachSpiderVerified, not vibes

CVE-2023-31997 in Ui Unifi Os and 2 more products

Critical 9.0

UniFi OS 3.1 introduces a misconfiguration on consoles running UniFi Network that allows users on a local network to access MongoDB. Applicable Cloud Keys that are both (1) running UniFi OS 3.1 and (2) hosting the UniFi Network application. "Applicable Cloud Keys" include the following: Cloud Key Gen2 and Cloud Key ...

Affects 3 products from 1 vendor. Facts below cite their sources.

CVSS 3.19.0
EPSS0.4%
EPSS percentile21th
FixUnknown

Exploitable from adjacent network, low complexity, low privileges required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Ui Unifi Os ≥ 3.1, ≤ 3.1.13

Platforms listed by the source (the vulnerable product runs on these; they are not themselves vulnerable): Ui Cloud Key Gen2, Ui Cloud Key Gen2 Plus

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

UniFi OS 3.1 introduces a misconfiguration on consoles running UniFi Network that allows users on a local network to access MongoDB. Applicable Cloud Keys that are both (1) running UniFi OS 3.1 and (2) hosting the UniFi Network application. "Applicable Cloud Keys" include the following: Cloud Key Gen2 and Cloud Key Gen2 Plus.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-31997
BreachSpider IDBS-2023-GLOBAL-057764-C
CVSS vectorCVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Published2023-07-01
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-863: Incorrect Authorization

Software performs an authorization check incorrectly, allowing access beyond intended privileges.

Analysis AI-written, not human-reviewed

CVE-2023-31997 affects UniFi OS 3.1 on Cloud Key Gen2 and Cloud Key Gen2 Plus devices, allowing local network users to access MongoDB due to a misconfiguration.

The vulnerability arises from a misconfiguration in UniFi OS 3.1 that exposes MongoDB to local network users, enabling unauthorized access to the database.

Questions

What is CVE-2023-31997?

CVE-2023-31997 affects UniFi OS 3.1 on Cloud Key Gen2 and Cloud Key Gen2 Plus devices, allowing local network users to access MongoDB due to a misconfiguration.

What is the CVSS score for CVE-2023-31997?

CVE-2023-31997 has CVSS 9.0 (Critical). Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.4%.

Is CVE-2023-31997 actively exploited?

No confirmed active exploitation of CVE-2023-31997 as of 2026-09-25.

How do I remediate CVE-2023-31997?

Priority: IMMEDIATE.

What systems are affected by CVE-2023-31997?

CVE-2023-31997 affects Ui Unifi Os.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ui","product":"Unifi Os","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.