CVE-2021-46315 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on D-Link DIR-846 routers via shell metacharacters in the SetWizardConfig.php parameters.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-46315?

CVE-2021-46315 is a critical command injection vulnerability in n/a, published on 17 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Remote Command Execution (RCE) vulnerability exists in HNAP1/control/SetWizardConfig.php in D-Link Router DIR-846 DIR846A1_FW100A43.bin and DIR846enFW100A53DLA-Retail.bin. Malicoius users can use this vulnerability to use "\ " or backticks in the shell metacharacters in the ssid0 or ssid1 parameters to cause arbitrary command execution. Since CVE-2019-17510 vulnerability has not been patched and improved www/hnap1/control/setwizardconfig.php, can also use line breaks and backquotes to bypass.

Weakness: CWE-78

Which versions are affected by CVE-2021-46315?

It affects 1 product.

Products include Dlink Dir-846 Firmware.

How do I fix CVE-2021-46315?

No fix has been published for CVE-2021-46315 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-46315 being exploited?

There is no known exploitation of CVE-2021-46315 in the wild and no public exploit code.

Sources

Also known as GHSA-cmfq-h2jx-ghxf.

Is CVE-2021-46315 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free