Executive brief
The D-Link DIR-825M wireless router contains a command injection vulnerability in its web-based system command interface. An attacker can remotely execute arbitrary commands with root privileges by manipulating the sysCmd parameter, enabling full device compromise, data interception, or network disruption without requiring authentication.
Technical details
The vulnerability is a command injection (CWE-78) in the sub_456CF4 function within the /boafrm/formSysCmd endpoint. The sysCmd parameter from HTTP POST requests is extracted without any input validation or sanitization and passed directly to a system() call via snprintf, allowing shell metacharacters (semicolon, ampersand, pipe) to inject arbitrary commands. The attack is network-accessible and requires no authentication or user interaction; an attacker sends a crafted POST request with shell operators in the sysCmd parameter to achieve arbitrary command execution with root privileges. Impact is limited to approximately 76 bytes per injected command. The vulnerability has been publicly disclosed and a proof-of-concept exploit is available.
Affected products
- D-Link DIR-825M 1.1.8 and potentially prior
Timeline
- 2026-08-31: disclosed
- exploited: Proof-of-concept publicly available