Aqara Hub CVE-2025-65292
HIGHSeverity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Malicious-domain delivery points to local-network (companion-app/on-path DNS) reach rather than console-only, so AV:A over vendor's AV:L; low-priv paired access (PR:L) and a triggering action (UI:R) yield root (C/I/A:H).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
Command injection vulnerability in Aqara Hub devices including Camera Hub G3 4.1.9_0027, Hub M2 4.3.6_0027, and Hub M3 4.3.6_0025 allows attackers to execute arbitrary commands with root privileges through malicious domain names.
AnalysisAI
Command injection in Aqara hub firmware - Camera Hub G3 4.1.9_0027, Hub M2 4.3.6_0027, and Hub M3 4.3.6_0025 - lets an attacker who can get the device to process an attacker-controlled domain name/hostname execute arbitrary commands with root privileges. Delivery is gated: the CVSS vector (AV:L/AC:L/PR:L/UI:R) indicates local-network-adjacent access, low-privileged credentials (e.g. a paired companion-app session), and a user-triggered action are required; our own assessment raises the access vector to AV:A (adjacent network) because 'malicious domain names' implies DNS/network-borne delivery rather than physical console access. Publicly available exploit code exists (a detailed GitHub write-up), but the flaw is not in CISA KEV and EPSS is modest at 0.80% (55th percentile), so exploitation in the wild is not confirmed; only the exact firmware builds listed are confirmed affected.
Technical ContextAI
The root cause is CWE-77 (Improper Neutralization of Special Elements used in a Command), the classic command-injection class in which untrusted input is concatenated into a shell/OS command without sanitization or escaping. Here the injected input is a domain name or hostname supplied by an attacker - the hub firmware passes it into a command execution context in a way that permits shell metacharacter or argument injection, and because the vulnerable process runs as root, successful injection yields full device compromise (C:H/I:H/A:H with S:U). The affected components are the Aqara hub firmware images identified by CPE as aqara:camera_hub_g3_firmware:4.1.9_0027, aqara:hub_m2_firmware:4.3.6_0027, and aqara:hub_m3_firmware:4.3.6_0025. The delivery model - attacker-controlled domain names - suggests the injection surfaces through name resolution or a DNS/hostname-handling feature rather than serial console access, which is why a network-adjacent (AV:A) assessment is more realistic than the NVD-published AV:L, even though both agree on low privileges (PR:L) and required user interaction (UI:R).
RemediationAI
No vendor-released patch was identified at time of analysis, so remediate through containment and hardening of the local network path this flaw depends on. Because exploitation requires attacker-influenced domain-name resolution plus a low-privileged local/adjacent session and user interaction, the highest-value mitigations are: isolate Aqara hubs on a dedicated IoT VLAN or SSID that cannot reach management workstations or NAS appliances, with inter-VLAN traffic denied (trade-off: no direct LAN access to the hub from trusted hosts, so admin must use the isolated segment); block outbound and inbound DNS to untrusted resolvers and force the hubs through a controlled resolver with domain allow-listing (trade-off: may break cloud/Aqara app functionality and firmware updates if the allow-list is too narrow); and treat any paired companion-app account as privileged - rotate Aqara account credentials, review paired users, and remove unused sessions, since PR:L indicates a low-privileged authenticated path is sufficient. Monitor the vendor advisory and the public report at https://github.com/Chapoly1305/myCVEReports/blob/main/Aqara/DNS-Command-Injection.md for a fixed firmware version, and apply it as soon as Aqara releases one; until then, do not expose these hubs to untrusted networks and avoid actions that let third parties influence hostname or domain resolution on the device.
More in Hub M2 Firmware
View allRemote command execution in Aqara Hub firmware (Camera Hub G3 4.1.9_0027, Hub M2 4.3.6_0027, and Hub M3 4.3.6_0025) stem
Aqara Camera Hub G3 (4.1.9_0027), Hub M2 (4.3.6_0027), and Hub M3 (4.3.6_0025) accept firmware images without properly v
Aqara Hub devices including Hub M2 4.3.6_0027, Hub M3 4.3.6_0025, and Camera Hub G3 4.1.9_0027 fail to validate TLS serv
Aqara Hub devices - Camera Hub G3 (4.1.9_0027), Hub M2 (4.3.6_0027) and Hub M3 (4.3.6_0025) - skip TLS server-certificat
Aqara Camera Hub G3 (4.1.9_0027), Hub M2 (4.3.6_0027), and Hub M3 (4.3.6_0025) firmware automatically collect and transm
Same weakness CWE-77 – Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today