CVE-2018-5371 Command injection in n/a

High 8.8 Published Updated

Authenticated attackers can execute arbitrary OS commands on D-Link DSL routers via shell metacharacters in the ipaddr field.

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

CVE-2018-5371 is a high-severity command injection vulnerability in n/a, published on 12 Jan 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

diag_ping.cmd on D-Link DSL-2640U devices with firmware IM_1.00 and ME_1.00, and DSL-2540U devices with firmware ME_1.00, allows authenticated remote attackers to execute arbitrary OS commands via shell metacharacters in the ipaddr field of an HTTP GET request.

Weakness: CWE-78

Which versions are affected by CVE-2018-5371?

It affects 2 products.

Products include D-Link Dsl-2540u Firmware, D-Link Dsl-2640u Firmware.

How do I fix CVE-2018-5371?

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

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

Sources

Also known as GHSA-vq8f-x936-p3x5.

Is CVE-2018-5371 in your software?

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

Check your SBOMs for free