CVE-2021-41653: Authenticated command injection in TP-Link TL-WR840N EU v5 PING function
- Vendor
- TP-Link
CVE-2021-41653 is an authenticated command-injection vulnerability in the PING diagnostic function of TP-Link TL-WR840N EU v5 routers running firmware through TL-WR840N(EU)_V5_171211. A crafted payload in the IP address input field, identified as the host parameter, allows an authenticated attacker to execute arbitrary commands remotely on the router. The MANGA botnet campaign, also known as Dark, has exploited the vulnerability to deploy Mirai-based malware.
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 permits arbitrary command execution and attacker control of the affected router. Observed exploitation deployed architecture-specific botnet payloads that blocked competing botnets and awaited commands to launch denial-of-service attacks. The execution privilege level is not specified.
Mitigation
If you can’t patch tonight, do this now.
Change default router credentials and restrict unnecessary network exposure of the management interface. IPS signatures TP-Link.HTTP.Management.Code.Execution and TP-Link.Home.Wifi.Router.CGI.Referer.Command.Injection have detected exploitation attempts. These measures supplement firmware remediation rather than eliminate the vulnerability.
Remediation
Patch, then assume compromise.
Install the vendor-provided updated firmware for the TP-Link TL-WR840N EU v5 hardware revision. Firmware through TL-WR840N(EU)_V5_171211 is affected; the exact fixed firmware version is not specified.
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.
Frequently asked questions
- Is CVE-2021-41653 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-41653?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-41653.
- Is there a patch for CVE-2021-41653?
- Install the vendor-provided updated firmware for the TP-Link TL-WR840N EU v5 hardware revision. Firmware through TL-WR840N(EU)_V5_171211 is affected; the exact fixed firmware version is not specified.
- What products are affected by CVE-2021-41653?
- TP-Link Tl-Wr840n Firmware.
- How severe is CVE-2021-41653?
- CVE-2021-41653 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 76.0% (100th percentile) as of Oct 16, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.