Published advisory · ZDI-23-495

NETGEAR RAX30 rex_cgi JSON Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability

Published Rocco Calvi
CVSS severity 6.8/ 10.0 · Medium AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Vulnerability analysis

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR RAX30 routers. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of JSON data. 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.

Disclosure timeline

  1. Vulnerability reported to vendor
  2. Coordinated public release of advisory

References