Root command execution via unsanitized guest SSID
Published Oct 31, 2022 · Updated May 7, 2025
Command injection in D-Link DIR-846 firmware 100A35 allows remote attackers to execute arbitrary commands as root via a crafted guest SSID. The SetGuestWLanSettings.php handler places wl(0).(1)_ssid and wl(1).(1)_ssid values directly inside single-quoted arguments passed to PHP exec(), without neutralizing shell metacharacters. Network access to the HNAP endpoint is required; successful injection provides unrestricted root-level command execution on the router.
Summary
What happened
Command injection in D-Link DIR-846 firmware 100A35 allows remote attackers to execute arbitrary commands as root via a crafted guest SSID. The SetGuestWLanSettings.php handler places wl(0).(1)_ssid and wl(1).(1)_ssid values directly inside single-quoted arguments passed to PHP exec(), without neutralizing shell metacharacters. Network access to the HNAP endpoint is required; successful injection provides unrestricted root-level command execution on the router.
The record
- CVE
- CVE-2020-21016
- Published
- Oct 31, 2022
- Updated
- May 7, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-94, T1059.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Oct 31, 2022CVE publishedPublication date reported by the CVE source.
- May 7, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- DIR-846 Guest WLAN Settings command-injection proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo