CVE-2013-10048 D-Link Devices command.php Unauthenticated RCE

Critical 9.3 Published Updated

Remote attackers can execute arbitrary shell commands with root privileges on legacy D-Link routers via an unauthenticated endpoint, leading to full device takeover.

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-2013-10048?

CVE-2013-10048 is a critical command injection vulnerability in D-Link DIR-300, published on 1 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An OS command injection vulnerability exists in various legacy D-Link routers—including DIR-300 rev B and DIR-600 (firmware ≤ 2.13 and ≤ 2.14b01, respectively)—due to improper input handling in the unauthenticated command.php endpoint. By sending specially crafted POST requests, a remote attacker can execute arbitrary shell commands with root privileges, allowing full takeover of the device. This includes launching services such as Telnet, exfiltrating credentials, modifying system configuration, and disrupting availability. The flaw stems from the lack of authentication and inadequate sanitation of the cmd parameter.

Weakness: CWE-78

Which versions are affected by CVE-2013-10048?

It affects 2 products.

Products include Dlink Dir-300 Firmware, Dlink Dir-600 Firmware.

How do I fix CVE-2013-10048?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-10048 exists.

Public exploit code: 1 Metasploit module.

Sources

Also known as GHSA-w7gc-gxjh-pg78.

Is CVE-2013-10048 in your software?

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

Check your SBOMs for free