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

CVE-2025-65292: Aqara Hub M2 Firmware RCE Vulnerability

CVE-2025-65292 is a command injection vulnerability in Aqara Hub M2 Firmware that enables attackers to execute arbitrary commands with root privileges via malicious domain names. This article covers technical details, affected versions, and mitigation.

Updated:

CVE-2025-65292 Overview

CVE-2025-65292 is a command injection vulnerability affecting multiple Aqara smart home hub devices. The flaw resides in how affected firmware processes domain name inputs, allowing attackers to execute arbitrary commands with root privileges. Affected products include the Aqara Camera Hub G3 (firmware 4.1.9_0027), Hub M2 (firmware 4.3.6_0027), and Hub M3 (firmware 4.3.6_0025). The vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command. Exploitation requires local access, low privileges, and user interaction, but grants full root-level control of the device upon success.

Critical Impact

Successful exploitation grants attackers root-level command execution on Aqara smart home hubs, enabling full device compromise, surveillance, and lateral movement into home or enterprise IoT networks.

Affected Products

  • Aqara Camera Hub G3 firmware 4.1.9_0027
  • Aqara Hub M2 firmware 4.3.6_0027
  • Aqara Hub M3 firmware 4.3.6_0025

Discovery Timeline

  • 2025-12-10 - CVE-2025-65292 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-65292

Vulnerability Analysis

The vulnerability stems from improper neutralization of special characters in domain name inputs processed by affected Aqara Hub firmware. When the device handles a maliciously crafted domain name, the input is passed to a shell interpreter without adequate sanitization. This design flaw allows shell metacharacters embedded in the domain string to be interpreted as command separators.

Aqara Hub devices act as central coordinators for Zigbee, Bluetooth, and Wi-Fi based smart home peripherals. They typically run Linux-based firmware with root-level system services. A command injection at this layer grants an attacker equivalent privileges to the highest-trusted process on the device.

The public technical report describes DNS-related processing as the injection surface. The attack requires local network access and user-triggered interaction, which reduces remote exploitability but remains significant in shared-network environments.

Root Cause

The root cause is the direct concatenation of untrusted domain name strings into shell command invocations. Affected firmware does not validate or escape characters such as backticks, semicolons, or command substitution operators before passing input to a system shell. This falls under CWE-77, covering commands assembled from tainted data.

Attack Vector

An attacker with local network access supplies a crafted domain name to the affected hub. When a legitimate user triggers processing of that input, the embedded shell payload executes as root. The resulting foothold allows attackers to modify firmware, exfiltrate camera streams from the G3, pivot to internal networks, or install persistent backdoors on the hub.

No verified public exploit code is available. Refer to the GitHub CVE Report for technical details.

Detection Methods for CVE-2025-65292

Indicators of Compromise

  • Unexpected outbound network connections from Aqara Hub devices to unknown hosts
  • Domain names containing shell metacharacters such as `, ;, |, $(, or && observed in DNS query logs
  • Unusual process activity or spawned shells on hubs where firmware logs are accessible
  • Configuration changes on the hub not initiated through the Aqara mobile application

Detection Strategies

  • Monitor DNS queries originating from IoT VLANs for anomalous or malformed domain strings
  • Baseline normal outbound destinations for Aqara hubs and alert on deviations
  • Inspect network flows for unexpected reverse shell or command-and-control patterns from smart home segments

Monitoring Recommendations

  • Forward DNS resolver and firewall logs into a centralized analytics platform for IoT-specific rules
  • Segment IoT devices onto isolated VLANs so hub telemetry can be inspected without user-network noise
  • Alert on any interactive shell or SSH activity sourced from IoT segments toward internal assets

How to Mitigate CVE-2025-65292

Immediate Actions Required

  • Restrict Aqara Hub devices to dedicated IoT VLANs with no lateral access to sensitive systems
  • Disable or block unnecessary inbound and outbound services on affected hubs at the network boundary
  • Audit which users and applications can submit domain configuration inputs to the affected devices
  • Monitor the Aqara support portal for firmware updates addressing CVE-2025-65292

Patch Information

At the time of publication, no vendor advisory URL is listed in NVD for CVE-2025-65292. Administrators should track vendor communications for firmware releases superseding versions 4.1.9_0027 (Camera Hub G3), 4.3.6_0027 (Hub M2), and 4.3.6_0025 (Hub M3). Apply updates as soon as they become available through the Aqara mobile application or vendor firmware channels.

Workarounds

  • Isolate affected hubs on a firewalled IoT network segment with strict egress filtering
  • Limit administrative access to the hub configuration interface to trusted users only
  • Disable remote or cloud features that are not required for daily operation
  • Restrict DNS resolution from IoT segments to a controlled internal resolver that logs and filters queries

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.