CVE-2019-20215 Command injection in n/a

Critical 9.8 Published Updated

Remote attackers can execute arbitrary OS commands on D-Link DIR-859 routers via a crafted M-SEARCH request due to improper input handling.

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-2019-20215?

CVE-2019-20215 is a critical command injection vulnerability in n/a, published on 29 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

D-Link DIR-859 1.05 and 1.06B01 Beta01 devices allow remote attackers to execute arbitrary OS commands via a urn: to the M-SEARCH method in ssdpcgi() in /htdocs/cgibin, because HTTP_ST is mishandled. The value of the urn: service/device is checked with the strstr function, which allows an attacker to concatenate arbitrary commands separated by shell metacharacters.

Weakness: CWE-78

Which versions are affected by CVE-2019-20215?

It affects 1 product.

Products include Dlink Dir-859 Firmware.

How do I fix CVE-2019-20215?

No fix has been published for CVE-2019-20215 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-2019-20215 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-20215 exists.

Public exploit code: 2 Metasploit modules and 1 Exploit-DB entry.

Sources

Also known as GHSA-xj55-9jj5-7q99.

Is CVE-2019-20215 in your software?

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

Check your SBOMs for free