CVE-2021-34991: NETGEAR R6400v2 UPnP uuid Stack-based Buffer Overflow Remote Code Execution Vulnerability
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR R6400v2 1.0.4.10610.0.80 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the UPnP service, which listens on TCP port 5000 by default. When parsing the uuid request header, the process does not properly validate 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. Was ZDI-CAN-14110.
Other sources
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of NETGEAR R6400v2 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the UPnP service, which listens on TCP port 5000 by default. When parsing the uuid request header, the process does not properly validate 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-34991?
CVE-2021-34991 has been rated as critical due to its potential to allow arbitrary code execution without authentication.
How do I fix CVE-2021-34991?
To fix CVE-2021-34991, update the firmware of the affected NETGEAR R6400v2 routers to version 1.0.4.120 or later.
Which devices are affected by CVE-2021-34991?
CVE-2021-34991 affects NETGEAR R6400v2 routers running firmware version 1.0.4.106_10.0.80.
Can CVE-2021-34991 be exploited remotely?
Yes, CVE-2021-34991 can be exploited remotely by network-adjacent attackers without requiring authentication.
Is my NETGEAR R6400v2 router vulnerable to CVE-2021-34991?
If your NETGEAR R6400v2 router is running firmware version 1.0.4.106_10.0.80 or older, it is vulnerable to CVE-2021-34991.