Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-1389: Unauthenticated Root Command Injection in TP-Link Archer AX21

Published Mar 15, 2023 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS89.3%100th percentile
CISA KEVYesAdded May 1, 2023
In the wildActivePer CISA KEV
Vendor
TP-Link
IdentifiersCVE-2023-1389CWE-78
Also known aszdi_23_451

CVE-2023-1389 is an unauthenticated operating-system command-injection vulnerability affecting TP-Link Archer AX21 (AX1800) router firmware before 1.1.4 Build 20230219. The web management interface fails to sanitize the country parameter when processing a write operation in its locale endpoint's country form. The parameter reaches a popen() call, allowing a crafted HTTP POST request to execute arbitrary commands as root. The vulnerability has been actively exploited by multiple botnets, including Mirai variants, Condi, Kaiji, RondoDox, and ClingSTUN.

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 compromises the router with root privileges, threatening the confidentiality and integrity of device configuration and data accessible to the router, as well as routing and service availability. Attackers can deploy malware, alter device behavior, and use the router as infrastructure for further attacks. Observed exploitation includes recruitment into DDoS botnets and deployment of persistent remote-access and proxy malware.

Mitigation

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

Remove the web management interface from Internet exposure and restrict management access to approved administrative workstations or network segments. Isolate vulnerable or unsupported routers from critical assets, limit unnecessary outbound connectivity, and monitor for exploitation requests, unexpected processes, startup modifications, and anomalous outbound communications. These controls reduce exposure but do not correct the command-injection flaw.

Remediation

Patch, then assume compromise.

Upgrade affected Archer AX21 routers to firmware 1.1.4 Build 20230219 or a later vendor-supported release appropriate to the device's hardware revision and region. Verify that the update was installed successfully; some hardware revisions require manual firmware updates. Replace unsupported devices when a suitable security update is unavailable.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2023-1389This repository contains two Python proof-of-concept exploits for CVE-2023-1389, an unauthenticated command injection vulnerability in the TP-Link Archer AX21 (AX1800) router's web management interface. The vulnerability exists in the 'country' parameter of the 'write' callback at the '/cgi-bin/luci/;stok=/locale' endpoint, allowing arbitrary command execution as root without authentication. - 'archer-file-transfer.py' allows the attacker to execute arbitrary commands on the router and exfiltrate their output by writing to '/tmp/out' and transferring it via netcat to the attacker's machine. - 'archer-rev-shell.py' provides a simpler method to obtain a reverse shell on the attacker's system using netcat. Both scripts require the attacker to specify the router's IP, their own IP, and a listening port. The exploit works by sending crafted GET requests to the vulnerable endpoint, leveraging command injection in the 'country' parameter. The README provides usage instructions and mitigation advice. The repository is structured with a README and two Python scripts, both of which are functional proof-of-concept exploits for the described vulnerability.Voyag3r-Security · Disclosed Jul 28, 2023 · python · networkPoCCVE-2023-1389This repository is a Go-based proof-of-concept exploit for CVE-2023-1389, targeting TP-Link Archer AX21 routers vulnerable to unauthenticated command injection. The main file, main.go, reads a list of target IP addresses from 'list.txt' and attempts to exploit each by sending a crafted HTTPS request to the /cgi-bin/luci/ endpoint, injecting a reverse shell payload. The payload causes the target device to connect back to the attacker's netcat listener, granting a remote shell. The exploit supports concurrent execution using goroutines and a concurrency manager. The repository includes a README with usage instructions, a Go module definition, and dependencies for command-line flag parsing and concurrency control. No detection or scanning functionality is present; the tool is strictly for exploitation. The main attack vector is network-based, exploiting a web interface on the target devices.werwolfz · Disclosed Dec 25, 2023 · go · networkPoC
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-LinkArcher Ax21 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2023-1389 exploited in the wild?
Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 1, 2023.
Is there a public exploit for CVE-2023-1389?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-1389, the earliest disclosed Jul 28, 2023.
Is there a patch for CVE-2023-1389?
Upgrade affected Archer AX21 routers to firmware 1.1.4 Build 20230219 or a later vendor-supported release appropriate to the device's hardware revision and region. Verify that the update was installed successfully; some hardware revisions require manual firmware updates.
What products are affected by CVE-2023-1389?
TP-Link Archer Ax21 Firmware.
How severe is CVE-2023-1389?
CVE-2023-1389 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 89.3% (100th percentile) as of Nov 28, 2026.
Activity feed

Recent activity

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

View more in app →
+60 more in the timeline. Sign up to see them
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 evidence2Every report linking this CVE to a named adversary.
Associated malware56Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity19Community discussion across Reddit, Mastodon, and other social sources.