CVE-2018-25120: Unauthenticated Command Injection in D-Link DNS-343 Mail Test
- Vendor
- D-Link
CVE-2018-25120 is a command injection vulnerability in D-Link DNS-343 ShareCenter devices running firmware 1.05 and earlier. The issue is present in the Mail Test functionality, where the web maintenance script submits data to the internal goForm endpoint '/goform/Mail_Test'. Multiple form parameters are incorporated directly into a call to a system email utility without proper input validation or sanitization. Because attacker-controlled input reaches a shell-invoked command path, a remote attacker can inject arbitrary shell metacharacters and commands. The vulnerability is exploitable without authentication and results in command execution in the context of the device's root account.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated remote attacker to execute arbitrary commands as root on the affected NAS device. This can lead to full compromise of the appliance, including unauthorized access to stored data, modification or deletion of files, installation of persistent malware or backdoors, reconfiguration of services, use of the device as a pivot point within the network, and complete loss of confidentiality, integrity, and availability of the system.
Mitigation
If you can’t patch tonight, do this now.
Do not expose the DNS-343 web management interface to the internet or untrusted networks. Restrict access to the administrative interface to a dedicated management network or specific trusted IP addresses using firewall rules or network ACLs. If possible, disable or avoid use of the Mail Test functionality. Place the device behind a VPN for administrative access, monitor for unexpected process execution or configuration changes, and segment the device from sensitive internal systems. Because the product is end-of-life, mitigation should be treated only as a temporary risk-reduction measure pending replacement.
Remediation
Patch, then assume compromise.
Upgrade to a fixed firmware version if one is available from D-Link. However, the provided content states that the DNS-343 product line is end-of-life, so a vendor-supported security fix may not be available. The most appropriate remediation is to retire and replace affected DNS-343 devices with supported hardware. If the device must remain in service temporarily, remove or restrict access to the vulnerable management interface as much as possible until replacement is completed.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2018-25120 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2018-25120?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2018-25120.
- Is there a patch for CVE-2018-25120?
- Upgrade to a fixed firmware version if one is available from D-Link. However, the provided content states that the DNS-343 product line is end-of-life, so a vendor-supported security fix may not be available.
- What products are affected by CVE-2018-25120?
- D-Link Dns-343 Sharecenter and D-Link Dns-343 Firmware.
- How severe is CVE-2018-25120?
- CVE-2018-25120 has a CVSS v4 score of 9.3 (Critical) and an EPSS score of 9.8% (96th percentile) as of Sep 25, 2026.
Recent activity
5 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.