CVE-2023-1389 TP-Link Archer AX-21 Command Injection
Unauthenticated attackers can execute arbitrary commands as root on TP-Link Archer AX21 routers via the web interface.
- Exploited in the wild
- Since 1 May 2023
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-1389?
CVE-2023-1389 is a high-severity command injection vulnerability in TP-Link Archer AX21 (AX1800), published on 15 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-77
Which versions are affected by CVE-2023-1389?
It affects 1 product.
Products include Tp-Link Archer Ax21 Firmware.
How do I fix CVE-2023-1389?
No fix has been published for CVE-2023-1389 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 22 May 2023.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-1389 being exploited?
Yes. Attackers have exploited CVE-2023-1389 in the wild since at least 1 May 2023.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in TP-Link Archer AX21 (AX1800)
- CVE-2023-27359 TP-Link AX1800 hotplugd Firewall Rule Race Condition Vulnerability
- CVE-2023-31710 Memory corruption in n/a
- CVE-2023-27332 TP-Link Archer AX21 tdpServer Logging Stack-based Buffer Overflow Remote Code Execution Vulnerability
- CVE-2023-27346 TP-Link AX1800 Firmware Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
- CVE-2023-27333 TP-Link Archer AX21 tmpServer Command 0x422 Stack-based Buffer Overflow Remote Code Execution Vulnerability
Sources
Also known as GHSA-h49r-m2rg-6pgf.