The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-31997

CVE-2023-31997: Ui Unifi Os Information Disclosure Flaw

CVE-2023-31997 is an information disclosure vulnerability in Ui Unifi Os that exposes MongoDB to local network users. This article covers technical details, affected Cloud Key devices, impact, and mitigation.

Published: January 28, 2026

CVE-2023-31997 Overview

CVE-2023-31997 is a critical security misconfiguration vulnerability affecting UniFi OS 3.1 running on Ubiquiti Cloud Key devices. The vulnerability introduces a misconfiguration on consoles running UniFi Network that allows users on a local network to access the MongoDB database without proper authorization. This exposes sensitive network configuration data and credentials to adjacent network attackers.

Critical Impact

Adjacent network attackers with low privileges can gain unauthorized access to the MongoDB database, potentially compromising confidentiality, integrity, and availability of the UniFi Network management system.

Affected Products

  • UniFi OS 3.1
  • Cloud Key Gen2
  • Cloud Key Gen2 Plus

Discovery Timeline

  • 2023-07-01 - CVE-2023-31997 published to NVD
  • 2024-11-26 - Last updated in NVD database

Technical Details for CVE-2023-31997

Vulnerability Analysis

This vulnerability stems from an insecure default configuration introduced in UniFi OS version 3.1. When the UniFi Network application is hosted on applicable Cloud Key devices (Gen2 and Gen2 Plus), the MongoDB instance becomes accessible to users on the local network segment. MongoDB stores critical UniFi Network configuration data, including device credentials, network topology information, and administrative settings.

The vulnerability is classified under CWE-863 (Incorrect Authorization), indicating that while some access controls may exist, they fail to properly restrict database access to authorized users only. An attacker positioned on the adjacent network can leverage this misconfiguration to directly query the MongoDB instance, bypassing the normal UniFi Network web interface authentication mechanisms.

Root Cause

The root cause of CVE-2023-31997 is an insecure default configuration introduced in UniFi OS 3.1. The MongoDB service binding configuration was inadvertently changed to allow connections from the local network interface rather than restricting access to localhost only. This misconfiguration affects Cloud Key Gen2 and Cloud Key Gen2 Plus devices when they are running both UniFi OS 3.1 and hosting the UniFi Network application.

Attack Vector

The attack vector requires adjacent network access, meaning the attacker must be on the same network segment as the vulnerable Cloud Key device. With low-privilege access to the network, an attacker can:

  1. Discover the Cloud Key device on the local network through service enumeration
  2. Connect directly to the exposed MongoDB port (typically 27117 for UniFi)
  3. Query the database without authentication or with default credentials
  4. Extract sensitive configuration data, credentials, and network topology information
  5. Potentially modify database records to alter network configurations or create backdoor administrative accounts

This attack does not require user interaction and can have a changed scope impact, affecting resources beyond the vulnerable component itself.

Detection Methods for CVE-2023-31997

Indicators of Compromise

  • Unexpected network connections to MongoDB ports (default: 27117) from non-localhost addresses
  • Unusual database query patterns or bulk data exports from the UniFi MongoDB instance
  • New or modified administrative accounts in the UniFi Network application
  • Unexpected configuration changes to network devices managed by UniFi

Detection Strategies

  • Monitor network traffic for connections to MongoDB ports originating from hosts other than localhost
  • Implement network segmentation monitoring to detect unauthorized cross-segment database access attempts
  • Review UniFi Network application logs for anomalous administrative actions or configuration changes
  • Deploy intrusion detection rules to identify MongoDB protocol traffic on unexpected network segments

Monitoring Recommendations

  • Enable detailed logging on Cloud Key devices and forward logs to a centralized SIEM solution
  • Set up alerts for any external connections to the MongoDB service port
  • Regularly audit administrative accounts and configuration changes within the UniFi Network application
  • Monitor for unauthorized network scanning activity targeting management interfaces

How to Mitigate CVE-2023-31997

Immediate Actions Required

  • Update UniFi OS to a version that addresses this misconfiguration (versions newer than 3.1)
  • Isolate Cloud Key devices on a dedicated management VLAN with strict access controls
  • Implement firewall rules to block MongoDB port access from all hosts except localhost
  • Review and audit all administrative accounts for unauthorized modifications

Patch Information

Ubiquiti has released security updates to address this vulnerability. Administrators should consult the UI Community Security Advisory for specific patch versions and update instructions. It is critical to update affected Cloud Key Gen2 and Cloud Key Gen2 Plus devices running UniFi OS 3.1 to the latest available firmware version.

Workarounds

  • Place Cloud Key devices on an isolated management network segment inaccessible to general users
  • Configure host-based firewall rules on the Cloud Key to restrict MongoDB access to localhost only
  • Implement network-level access control lists (ACLs) to prevent unauthorized access to management interfaces
  • Consider disabling remote management access until the patch can be applied
bash
# Network isolation configuration example (firewall rule to restrict MongoDB)
# Block external access to MongoDB port 27117
iptables -A INPUT -p tcp --dport 27117 ! -s 127.0.0.1 -j DROP

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechUi Unifi Os

  • SeverityCRITICAL

  • CVSS Score9.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-863
  • Technical References
  • UI Community Security Advisory
  • Latest CVEs
  • CVE-2025-9962: Novakon P Series Privilege Escalation

  • CVE-2026-1961: Foreman WebSocket Proxy RCE Vulnerability

  • CVE-2026-4903: Tenda AC5 Buffer Overflow Vulnerability

  • CVE-2026-4902: Tenda AC5 Buffer Overflow Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English