Advisory Details

February 10th, 2022

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

ZDI-22-265
ZDI-CAN-13910

CVE ID CVE-2022-24355
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 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 not required to exploit this vulnerability.

The specific flaw exists within the parsing of file name extensions. 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-10 - Coordinated public release of advisory
CREDIT Vadym Kolisnichenko
BACK TO ADVISORIES