TP-Link Archer AX21 (AX1800)
TP-Link Archer AX-21 Command Injection Vulnerability
Edge device · Router / network deviceknown edge product: TP-Link TP-Link Archer AX21 (AX1800) TP-Link Archer (high confidence)
TP-Link Archer AX21 (AX1800) firmware versions before 1.1.4 Build 20230219 contained a command injection vulnerability in the country form of the /cgi-bin/luci;stok=/locale endpoint on the web management interface. Specifically, the country parameter of the write operation was not sanitized before being used in a call to popen(), allowing an unauthenticated attacker to inject commands, which would be run as root, with a simple POST request.
Timeline
Days relative to CVE publicationFirst public PoC 135 days after publication; added to CISA KEV 47 days after publication. First PoC: Voyag3r-Security/CVE-2023-1389 (created 28 Jul 2023, found by us: backfilled).
PoC repositories
Found on GitHub.5 PoCs · 1 pending · 2 informational
PoCs 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Voyag3r-Security/CVE-2023-1389 | 28 Jul 2023 +135 d | 18 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| werwolfz/CVE-2023-1389 | 25 Dec 2023 +285 d | 1 | PoC |
| BrandonFanti/FoWL | 29 Jul 2024 +1.4 y | 3 | PoC |
| infcodev/pentesting_scripts | 6 Feb 2025 +1.9 y | 0 | PoC via PoC Index |
| ohnahee/CVE_2023_1389_poc | 17 Apr 2025 +2.1 y | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Terminal1337/CVE-2023-1389 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| R00T-Kim/SCOUT | 5 Jan 2026 +2.8 y | 13 | Informational · list |
| defencore/openwrt_tp-link_archer_ax53_eu_1.0 | 21 Jun 2026 +3.3 y | 1 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | TP-Link Archer AX21 - Unauthenticated Command Injection | 10 Aug 2023 | 14 Nov 2026 |
| nuclei template | nuclei template: TP-Link Archer AX21 (AX1800) - Unauthenticated Command Injection | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 5 PoC reposGET /cgi-bin/luci/;stok=/locale
- Query
form=countryoperation=writecountry=$(country=$(nc- Seen in
- 2 repos: Voyag3r-Security/CVE-2023-1389, werwolfz/CVE-2023-1389
- Evidence
- Voyag3r-Security/CVE-2023-1389/archer-file-transfer.py:53 Voyag3r-Security/CVE-2023-1389/archer-file-transfer.py:54 Voyag3r-Security/CVE-2023-1389/archer-file-transfer.py:60 Voyag3r-Security/CVE-2023-1389/archer-file-transfer.py:61 Voyag3r-Security/CVE-2023-1389/archer-rev-shell.py:51 Voyag3r-Security/CVE-2023-1389/archer-rev-shell.py:52
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/luci/;stok=/locale\?(?:.*&)?form=country.*operation=write.*country=\$\(.*country=\$\(nc
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-1389 TP-Link TP-Link Archer AX21 (AX1800) exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/luci/|3b|stok=/locale"; http.uri; content:"form=country"; http.uri; content:"operation=write"; http.uri; content:"country=$("; http.uri; content:"country=$(nc"; reference:url,poc.griffinguard.io/cve/CVE-2023-1389; classtype:web-application-attack; sid:9755676; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: TP-Link TP-Link Archer AX21 (AX1800) exploit attempt (CVE-2023-1389)
id: gg-pocmon-cve-2023-1389-9755676
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-1389. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-1389
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/luci/;stok=/locale'
cs-uri-query|contains|all:
- 'form=country'
- 'operation=write'
- 'country=$('
- 'country=$(nc'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2023.1389