Advisory Details

February 22nd, 2022

TP-Link TL-WR940N httpd ssid1 Stack-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-22-406
ZDI-CAN-13992

CVE ID CVE-2022-24973
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 TL-WR940N
VULNERABILITY DETAILS

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

The specific flaw exists within the httpd service, which listens on TCP port 80 by default. 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 firmware 211111


DISCLOSURE TIMELINE
  • 2021-10-21 - Vulnerability reported to vendor
  • 2022-02-22 - Coordinated public release of advisory
CREDIT Vadym Kolisnichenko
BACK TO ADVISORIES