CVE-2018-19990 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on D-Link DIR-822 routers via shell metacharacters in the WPSPIN parameter of the HNAP interface.

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-2018-19990?

CVE-2018-19990 is a critical command injection vulnerability in n/a, published on 13 May 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the /HNAP1/SetWiFiVerifyAlpha message, the WPSPIN parameter is vulnerable, and the vulnerability affects D-Link DIR-822 B1 202KRb06 devices. In the SetWiFiVerifyAlpha.php source code, the WPSPIN parameter is saved in the $rphyinf1."/media/wps/enrollee/pin" and $rphyinf2."/media/wps/enrollee/pin" and $rphyinf3."/media/wps/enrollee/pin" internal configuration memory without any regex checking. And in the do_wps function of the wps.php source code, the data in $rphyinf3."/media/wps/enrollee/pin" is used with the wpatalk command without any regex checking. A vulnerable /HNAP1/SetWiFiVerifyAlpha XML message could have shell metacharacters in the WPSPIN element such as the `telnetd` string.

Weakness: CWE-78

Which versions are affected by CVE-2018-19990?

It affects 1 product.

Products include D-Link Dir-822 Firmware.

How do I fix CVE-2018-19990?

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

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

Sources

Also known as GHSA-gjhp-rrwf-m3px.

Is CVE-2018-19990 in your software?

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

Check your SBOMs for free