Netgear R6100 Buffer Overflow Vulnerability Allowing Remote Code Execution

Vulnerability

A buffer overflow vulnerability has been identified in the Netgear R6100 router, specifically in firmware version 1.0.1.28. This vulnerability allows remote attackers to execute arbitrary code by manipulating the QUERY_STRING key value, leading to a stack overflow via a vulnerable sprintf function. The issue arises in the cgiMain component of the router's web interface.

Impact

Exploitation of this vulnerability allows remote, unauthenticated attackers to execute arbitrary code on the affected device, potentially leading to full control over the router.

Reproduction

The vulnerability can be reproduced by sending a crafted QUERY_STRING value that exceeds the buffer limit, causing a stack overflow. This can be done using a QEMU simulation that mimics the router's environment. The 'CONTENT_LENGTH' environment variable should be empty, and the 'cgiMain' application must be executed with the '-f' flag.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
5.7
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.0
threat
6.6
urgency
2.9
incentive
9.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.