CVE-2023-1389 TP-Link Archer AX-21 Command Injection

Exploited in the wild High 8.8 Published Updated

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.

Sources

Also known as GHSA-h49r-m2rg-6pgf.

Is CVE-2023-1389 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free