Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Unauthenticated command injection RCE in multiple D-Link routers via PingTest/apply_sec.cgi

IdentifiersCVE-2019-16920CWE-78· Improper Neutralization of Special…

CVE-2019-16920 is an unauthenticated remote code execution vulnerability affecting multiple D-Link router products, including DIR-655C, DIR-866L, DIR-652, DHP-1565, and later-reported affected models such as DIR-855L, DAP-1533, DIR-862L, DIR-615, DIR-835, and DIR-825. The flaw is in the web management interface, specifically the PingTest functionality exposed through the device CGI endpoint (reported as the PingTest device CGI and also associated with /apply_sec.cgi). An attacker can supply arbitrary input to this functionality, and that input is improperly passed to the underlying system shell, resulting in OS command injection. Because exploitation does not require authentication and the injected commands execute in the router context, successful exploitation can yield full system compromise of the device.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote unauthenticated attacker to execute arbitrary operating system commands on the affected router, reportedly with root privileges. This can result in complete compromise of the device, including takeover of administrative control, modification of configuration, installation of persistent malware or botnet payloads, traffic interception or redirection, use of the router as a pivot or hop point, and disruption of network services.

Mitigation

If you can’t patch tonight, do this now.

No vendor-provided patch or workaround is available in the supplied content. The available mitigation is to immediately replace affected hardware. Until replacement is completed, exposure should be minimized by removing internet access to the management interface, disabling remote administration if enabled, restricting administrative access to trusted internal hosts or management networks only, and monitoring for signs of compromise; however, the advisory context states replacement is the primary mitigation.

Remediation

Patch, then assume compromise.

According to the provided advisory context, no vendor updates or patches are available for the affected devices. The recommended remediation is to replace affected D-Link routers with vendor-supported models that receive security updates. Organizations should remove vulnerable devices from production networks and migrate configurations to supported hardware as soon as possible.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2019-16920-MassPwn3rMaturityPoCVerified exploit

This repository contains two Python exploit scripts (CVE-2019-16920.py and CVE-2019-16920-MassPwn3r.py) targeting CVE-2019-16920, a remote unauthenticated command injection vulnerability in multiple D-Link router models. The exploit works by sending a crafted POST request to the /apply_sec.cgi endpoint, abusing the 'ping_test' action to inject and execute arbitrary system commands. The single-target script (CVE-2019-16920.py) takes an IP, port, and command as arguments, while the mass exploitation script (CVE-2019-16920-MassPwn3r.py) reads a list of IPs from bots.txt and attempts to exploit each in parallel using threads. The README.md provides usage instructions, a list of affected models, and a brief vulnerability description. The bots.txt file contains a sample list of target IP addresses. The exploit is operational, providing remote code execution on vulnerable devices without authentication.

eniac888Disclosed Oct 16, 2019pythonnetwork
EXPOSURE SURFACE

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.

VendorProductType
D-LinkDap-1533 Firmwareoperating_system
D-LinkDhp-1565 Firmwareoperating_system
D-LinkDir-615 Firmwareoperating_system
D-LinkDir-652 Firmwareoperating_system
D-LinkDir-655 Firmwareoperating_system
D-LinkDir-825 Firmwareoperating_system
D-LinkDir-835 Firmwareoperating_system
D-LinkDir-855l Firmwareoperating_system
D-LinkDir-862l Firmwareoperating_system
D-LinkDir-866l Firmwareoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence1

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.