CVE-2019-8318 Command injection in n/a

High 8.8 Published Updated

Remote attackers can execute arbitrary OS commands and gain root access via crafted HNAP requests on D-Link DIR-878 routers.

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

What is CVE-2019-8318?

CVE-2019-8318 is a high-severity command injection vulnerability in n/a, published on 13 Feb 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An issue was discovered on D-Link DIR-878 devices with firmware 1.12A1. This issue is a Command Injection allowing a remote attacker to execute arbitrary code, and get a root shell. A command Injection vulnerability allows attackers to execute arbitrary OS commands via a crafted /HNAP1 POST request. This occurs when any HNAP API function triggers a call to the twsystem function with untrusted input from the request body for the SetSysEmailSettings API function, as demonstrated by shell metacharacters in the SMTPServerPort field.

Weakness: CWE-78

Which versions are affected by CVE-2019-8318?

It affects 1 product.

Products include Dlink Dir-878 Firmware.

How do I fix CVE-2019-8318?

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

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

Sources

Also known as GHSA-c4p7-qmm6-gmjp.

Is CVE-2019-8318 in your software?

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

Check your SBOMs for free