← Vulnerability feed

Vulnerability record · CVE-2021-41653 · published 13 November 2021

CVE-2021-41653: TP-Link TL-WR840N router PING function command injection RCE

Tp Link · Tl Wr840n Firmware

The PING diagnostic function on the TP-Link TL-WR840N EU v5 router (firmware through TL-WR840N(EU)_V5_171211) fails to sanitize the IP address input field, allowing injected commands to execute on the device. Because the flaw is remotely reachable with no authentication or user interaction, it exposes the router to full compromise.

9.8 CVSS 3.1 Critical EPSS 76% · top 0.5% CWE-94 · Code injection
9.8CVSS 3.1 base score, v2 10.0
76%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
9 Jul 2026Last modified by NVD

Description

The PING function on the TP-Link TL-WR840N EU v5 router with firmware through TL-WR840N(EU)_V5_171211 is vulnerable to remote code execution via a crafted payload in an IP address input field.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

critical priorityCVSS 9.8 with network reachability, no authentication or interaction, and a very high EPSS score make this an urgent remote takeover risk for exposed devices.

What it is

The PING diagnostic function on the TP-Link TL-WR840N EU v5 router (firmware through TL-WR840N(EU)_V5_171211) fails to sanitize the IP address input field, allowing injected commands to execute on the device. Because the flaw is remotely reachable with no authentication or user interaction, it exposes the router to full compromise.

Impact

An attacker gains remote code execution on the router, which can lead to full device takeover, traffic interception or redirection, and use of the device as a foothold into the attached network.

Attack surface

Reached over the network via the router's PING function and its IP address input field; the CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates no authentication and no user interaction are required.

Exploitation

Not listed in CISA KEV and no ransomware association is documented, but EPSS is very high (0.76045, 99.5th percentile) and a public exploit reference is tagged, indicating active interest and likely availability of exploit code.

What to do

  • Apply the TP-Link security advisory firmware update for the TL-WR840N EU v5; if no fixed firmware exists for the exact model, replace the device.
  • Disable or block remote access to the router's web management interface and PING diagnostic function from untrusted networks.
  • Restrict management access to a trusted LAN segment and change default administrative credentials.
  • Segment or isolate the router from sensitive internal networks until it is patched or replaced.
  • Monitor vendor advisory pages for updated firmware and end-of-support guidance for this model.

Detection

  • Inspect router and perimeter logs for requests to the PING/diagnostic endpoint containing shell metacharacters (;, |, &, $(), backticks) in the IP address parameter.
  • Alert on unexpected outbound connections or processes originating from the router's management IP.
  • Monitor for anomalous DNS or traffic redirection behavior from the router toward internal hosts.
  • Audit exposed management interfaces of TP-Link TL-WR840N devices on the network and flag any reachable from untrusted zones.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-41653 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

6.5CVE-2023-50224TP-Link router httpd authentication bypass exposes stored credentialsThe httpd service on affected TP-Link router firmware contains an improper authentication flaw (CWE-290) that lets a network-adjacent attacker bypass…KEVEPSS 16%analysed9.8CVE-2022-25060Tp-link tl-wr840n firmware os command injection vulnerabilityTP-LINK TL-WR840N(ES)_V6.20_180709 was discovered to contain a command injection vulnerability via the component oal_startPing.EPSS 40%9.8CVE-2022-25061TP-Link TL-WR840N router command injection in oal_setIp6DefaultRouteThe TP-Link TL-WR840N(ES) V6.20 firmware (build 180709) contains an OS command injection flaw in the oal_setIp6DefaultRoute component. Because the fl…EPSS 59%analysed9.8CVE-2022-25064Tp-link tl-wr840n firmware os command injection vulnerabilityTP-LINK TL-WR840N(ES)_V6.20_180709 was discovered to contain a remote code execution (RCE) vulnerability via the function oal_wan6_setIpAddr.EPSS 36%9.8CVE-2020-36178Tp-link tl-wr840n firmware os command injection vulnerabilityoal_ipt_addBridgeIsolationRules on TP-Link TL-WR840N 6_EU_0.9.1_4.16 devices allows OS command injection because a raw string entered from the web in…EPSS 9.7%9.8CVE-2018-11714TP-Link router CGI session handling bypass allows unauthenticated actionsTP-Link TL-WR840N v5 and TL-WR841N v13 routers mishandle sessions on the /cgi/ path. Sending a Referer header of http://192.168.0.1/mainFrame.htm cau…EPSS 68%analysed8.8CVE-2023-39471Tp-link tl-wr841n firmware os command injection vulnerabilityTP-Link TL-WR841N ated_tp Command Injection Remote Code Execution Vulnerability. This vulnerability allows network-adjacent attackers to execute arbi…EPSS 0.91%8.8CVE-2019-15060Tp-link tl-wr840n firmware os command injection vulnerabilityThe traceroute function on the TP-Link TL-WR840N v4 router with firmware through 0.9.1 3.16 is vulnerable to remote code execution via a crafted payl…EPSS 4.0%

Source: NIST National Vulnerability Database (record CVE-2021-41653), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.