Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2021-41653: Authenticated command injection in TP-Link TL-WR840N EU v5 PING function

Published Nov 13, 2021 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS76.0%100th percentile
CISA KEVNoNot listed
In the wildReported483 exploitation records in Mallory
Vendor
TP-Link
IdentifiersCVE-2021-41653CWE-78

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
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
TP-LinkTl-Wr840n Firmwareoperating_system
FAQ

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.
Activity feed

Recent activity

4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
qianxin xlab blogNews · Feb 2, 2024Smargaft Harnesses EtherHiding for Stealthy C2 HostingA vulnerability used in Smargaft's older worm-like propagation implementation. The bot scans private-network addresses and attempts exploitation after checking 100 IPs. A counter-reset bug prevents its intended public-network scanning. The subsequent payload discussion instead names CVE-2021-45653; this identifier inconsistency cannot be resolved from the content.Read more ↗vulncheck blogNews · Jan 18, 20247777-Botnet Infection VectorsA TP-Link router vulnerability mentioned as affecting the same router models, but described as likely requiring valid credentials to exploit (making it a less straightforward candidate for 7777-Botnet propagation in this writeup).Read more ↗vulncheck blogNews · Jan 18, 20247777-Botnet Infection VectorsA TP-Link vulnerability affecting the discussed router models, mentioned as a less likely 7777-Botnet infection vector because exploitation appears to require valid credentials.Read more ↗fortinet threat researchNews · Dec 8, 2021MANGA aka Dark Mirai-based Campaign Targets New TP-Link Router RCE Vulnerability | FortiGuard LabsAn authenticated remote code execution vulnerability affecting TP-Link TL-WR840N EU (V5) wireless routers. A vulnerable host parameter permits authenticated users to execute arbitrary commands. The Mirai-based MANGA/Dark botnet exploits it to download and execute tshit.sh, install botnet payloads, and commandeer devices for denial-of-service attacks. Exploitation requires valid credentials.Read more ↗
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.