Advisory Details

March 15th, 2023

TP-Link Archer AX21 tdpServer Logging Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-23-245
ZDI-CAN-19898

CVE ID CVE-2023-27332
CVSS SCORE 8.8, AV:A/AC:L/PR:N/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 not required to exploit this vulnerability.

The specific flaw exists within the logging functionality of the tdpServer program, which listens on UDP port 20002. 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-11 - Vulnerability reported to vendor
  • 2023-03-15 - Coordinated public release of advisory
CREDIT Reported by Xiaobye, working with DEVCORE Internship Program
BACK TO ADVISORIES