CVE-2021-31802 Memory corruption in n/a

High 8.8 Published Updated

A heap-based buffer overflow in NETGEAR R7000 routers allows unauthenticated attackers on the local network to execute arbitrary code as root via a crafted HTTP request.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-31802?

CVE-2021-31802 is a high-severity memory corruption vulnerability in Netgear R7000 Firmware, published on 26 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

NETGEAR R7000 1.0.11.116 devices have a heap-based Buffer Overflow that is exploitable from the local network without authentication. The vulnerability exists within the handling of an HTTP request. An attacker can leverage this to execute code as root. The problem is that a user-provided length value is trusted during a backup.cgi file upload. The attacker must add a \n before the Content-Length header.

Weakness: CWE-787

Which versions are affected by CVE-2021-31802?

It affects 1 product.

Products include Netgear R7000 Firmware.

How do I fix CVE-2021-31802?

No fix has been published for CVE-2021-31802 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-31802 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31802 exists.

Public exploit code: 1 Metasploit module.

All Netgear R7000 Firmware vulnerabilities

Sources

Also known as GHSA-89v8-28p6-p87r.

Is CVE-2021-31802 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free