CVE-2019-20217 Command injection in n/a

Critical 9.8 Published Updated

Remote attackers can execute arbitrary OS commands on D-Link DIR-859 routers via the M-SEARCH method due to improper handling of the urn: parameter.

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-20217?

CVE-2019-20217 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 the urn: to the M-SEARCH method in ssdpcgi() in /htdocs/cgibin, because SERVER_ID 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-20217?

It affects 1 product.

Products include Dlink Dir-859 Firmware.

How do I fix CVE-2019-20217?

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

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

Sources

Also known as GHSA-rm3g-gj58-gg6q.

Is CVE-2019-20217 in your software?

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

Check your SBOMs for free