OS command injection in Netgear D6400 diag.cgi (host_name)
CVE-2025-7407 is a critical OS command injection vulnerability in Netgear D6400 firmware 1.0.0.114. The issue resides in the diag.cgi endpoint, where the host_name argument can be manipulated such that attacker-controlled input is incorporated into an operating system command without adequate sanitization, enabling command injection. The attack is described as remotely exploitable, and public exploit details are available. The affected product line is noted as end-of-support/unsupported by the maintainer.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A successful exploit allows a remote attacker to execute arbitrary OS commands on the affected Netgear D6400 device, potentially resulting in full compromise of the router (e.g., takeover of device functionality, modification of configuration, disruption of network connectivity, and use of the device as a pivot point into the internal network).
If you can’t patch tonight, do this now.
If replacement/patching is not immediately possible: restrict access to the management/diagnostic interface hosting diag.cgi to trusted administrative networks only; disable remote administration/WAN management; apply network-layer controls (ACLs/firewall rules) to prevent untrusted access to the device’s web interface; and monitor for suspicious requests targeting diag.cgi with host_name payloads indicative of command injection attempts.
Patch, then assume compromise.
Upgrade to a vendor-provided fixed firmware if one exists for the Netgear D6400; however, the affected products are described as no longer supported. In the absence of an official patch, the practical remediation is to replace the device with a supported model receiving security updates.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.