Advisory Details

March 15th, 2023

TP-Link Archer AX21 tmpServer Command 0x422 Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-23-244
ZDI-CAN-19905

CVE ID CVE-2023-27333
CVSS SCORE 6.8, AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS TP-Link
AFFECTED PRODUCTS Archer AX21
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link Archer AX21 routers. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of command 0x422 provided to the tmpServer service. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of root.

ADDITIONAL DETAILS

Fixed in Archer AX21 version V3230219 https://www.tp-link.com/us/support/download/archer-ax21/#Firmware


DISCLOSURE TIMELINE
  • 2023-01-26 - Vulnerability reported to vendor
  • 2023-03-15 - Coordinated public release of advisory
CREDIT Pumpkin, working with DEVCORE Internship Program
BACK TO ADVISORIES