CVE-2024-5297 D-Link D-View executeWmicCmd Command Injection Remote Code Execution Vulnerability

High 8.8 Published Updated

Remote attackers can execute arbitrary code as root via command injection in D-Link D-View, bypassing authentication.

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-2024-5297?

CVE-2024-5297 is a high-severity command injection vulnerability in D-Link D-View, published on 23 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

D-Link D-View executeWmicCmd Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of D-Link D-View. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

The specific flaw exists within the executeWmicCmd method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-21821.

Weakness: CWE-78

Which versions are affected by CVE-2024-5297?

It affects 1 product.

Products include Dlink D-View 8.

How do I fix CVE-2024-5297?

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

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

Sources

Is CVE-2024-5297 in your software?

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

Check your SBOMs for free