Root command execution via unsanitized country parameter
Published Mar 15, 2023 · Updated Oct 21, 2025
Command injection in TP-Link Archer AX21 firmware before 1.1.4 Build 20230219 allows remote attackers to execute commands as root. The set_country path passes the country value through merge_config_by_country, which concatenates it into a command executed by popen without sanitization. The locale API is exposed on the local network; WAN exploitation requires chaining a separate firewall race that briefly exposes the endpoint.
Summary
What happened
Command injection in TP-Link Archer AX21 firmware before 1.1.4 Build 20230219 allows remote attackers to execute commands as root. The set_country path passes the country value through merge_config_by_country, which concatenates it into a command executed by popen without sanitization. The locale API is exposed on the local network; WAN exploitation requires chaining a separate firewall race that briefly exposes the endpoint.
The record
- CVE
- CVE-2023-1389
- Published
- Mar 15, 2023
- Updated
- Oct 21, 2025
- Vendor
- TP-Link
- Product
- Archer AX21
- Classifications
- CWE-77, T1190, T1059.004
- Attack vector
- adjacent
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 15, 2023CVE publishedPublication date reported by the CVE source.
- Apr 11, 2023Exploitation reportedMirai exploitation of Archer AX21 routers
- May 1, 2023Exploitation reportedCISA Known Exploited Vulnerabilities Catalog listing
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=All versions prior to version 1.14 Build 20230219
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 10, 2026 | 6 |
| Sep 11, 2026 | 2 |
| Sep 12, 2026 | 2 |
| Sep 13, 2026 | 1 |
| Sep 14, 2026 | 2 |
| Sep 15, 2026 | 2 |
| Sep 16, 2026 | 3 |
Weakness, pattern, technique
Public exploit references
- Tenable two-request country-form proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities Catalog listingknown exploited catalog
- Mirai exploitation of Archer AX21 routersbotnet
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo