NETGEAR RAX30 rex_cgi JSON Parsing Stack-based Buffer Overflow Remote Code Execution Vulnerability
Rocco Calvi
ZDI ID: ZDI-23-495
ZDI-CAN: ZDI-CAN-19355
- CVSS
- 6.8 AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Affected Vendors
- NETGEAR
- Affected Products
- RAX30
Vulnerability Details
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.
Additional Details
Disclosure Timeline
- 2022-11-23 — Vulnerability reported to vendor
- 2023-05-01 — Coordinated public release of advisory