PoC Monitor
← All CVEs
CVE-2023-1389published 15 Mar 2023 00:00 UTCData: JSON · API

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.

First public PoC 135 daysafter publication · 28 Jul 2023
Public PoCs75 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS8.8high · scored by CISA ADP · CWE-77
CISA KEV 1 May 202347 days after publication

Timeline

Days relative to CVE publication
t=0+30+60+90+120CVE published15 Mar 2023 · t = 0Added to CISA KEV1 May 2023 · t+47dFirst public PoC28 Jul 2023 · t+135d

First 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
RepositoryCreatedStarsAssessment
Voyag3r-Security/CVE-2023-1389 28 Jul 2023 +135 d 18 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

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
RepositoryCreatedStarsAssessment
Terminal1337/CVE-2023-1389 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 2
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
Exploit-DBTP-Link Archer AX21 - Unauthenticated Command Injection10 Aug 202314 Nov 2026
nuclei templatenuclei template: TP-Link Archer AX21 (AX1800) - Unauthenticated Command Injectionunknown14 Nov 2026

PoC characteristics

What to hunt for in your logs · from 5 PoC repos

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /cgi-bin/luci/;stok=/locale
(?i)^/cgi-bin/luci/;stok=/locale\?(?:.*&)?form=country.*operation=write.*country=\$\(.*country=\$\(nc

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /cgi-bin/luci/;stok=/locale
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.

GET /cgi-bin/luci/;stok=/locale
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