CVE-2018-19988 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands on D-Link DIR-868L routers via unsanitized parameters in the HNAP1 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-19988?

CVE-2018-19988 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/SetClientInfoDemo message, the AudioMute and AudioEnable parameters are vulnerable, and the vulnerabilities affect D-Link DIR-868L Rev.B 2.05B02 devices. In the SetClientInfoDemo.php source code, the AudioMute and AudioEnble parameters are saved in the ShellPath script file without any regex checking. After the script file is executed, the command injection occurs. It needs to bypass the wget command option with a single quote. A vulnerable /HNAP1/SetClientInfoDemo XML message could have single quotes and backquotes in the AudioMute or AudioEnable element, such as the '`telnetd`' string.

Weakness: CWE-78

Which versions are affected by CVE-2018-19988?

It affects 1 product.

Products include D-Link Dir-868l Firmware.

How do I fix CVE-2018-19988?

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

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

Sources

Also known as GHSA-cmxx-h695-3r7r.

Is CVE-2018-19988 in your software?

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

Check your SBOMs for free