Aqara Camera Hub G3 Command Injection Vulnerability Allowing Root Privilege Escalation

Vulnerability

A command injection vulnerability has been identified in the Aqara Camera Hub G3 running firmware 4.1.9_0027. This vulnerability allows attackers to execute arbitrary commands with root privileges by using malicious QR codes during the device setup process or a factory reset. The issue arises from improper input sanitization when QR code data is processed, enabling exploitation through crafted QR codes.

Impact

Exploitation of this vulnerability allows for unauthenticated remote code execution with root privileges on the affected device.

Reproduction

The vulnerability can be reproduced by creating a QR code that includes newline or carriage return characters, which are not properly filtered by the device. This crafted QR code can then be scanned during the setup process or after a factory reset, leading to the execution of arbitrary commands with root privileges.

Remediation

Users can update to the latest firmware version released on October 20, 2025, to address this vulnerability.

Added: Dec 10, 2025, 10:26 PM
Updated: Dec 10, 2025, 10:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
4.3
remediation
7.7
relevance
1.4
threat
4.8
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.