# CVE-2021-29068: Memory corruption in n/a

> An authenticated user can trigger a buffer overflow in various NETGEAR routers, potentially leading to arbitrary code execution.

- **Severity:** Critical 9.9 (`CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:L/S:C/UI:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 23 Mar 2021
- **Updated:** 3 Aug 2024
- **Also known as:** GHSA-4223-wcr9-hvjq

## What is CVE-2021-29068?

CVE-2021-29068 is a critical memory corruption vulnerability in Netgear D7800 Firmware, published on 23 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Certain NETGEAR devices are affected by a buffer overflow by an authenticated user. This affects R6700v3 before 1.0.4.98, R6400v2 before 1.0.4.98, R7000 before 1.0.11.106, R6900P before 1.3.2.124, R7000P before 1.3.2.124, R7900 before 1.0.4.26, R7850 before 1.0.5.60, R8000 before 1.0.4.58, RS400 before 1.5.0.48, R6400 before 1.0.1.62, R6700 before 1.0.2.16, R6900 before 1.0.2.16, MK60 before 1.0.5.102, MR60 before 1.0.5.102, MS60 before 1.0.5.102, CBR40 before 2.5.0.10, R8000P before 1.4.1.62, R7960P before 1.4.1.62, R7900P before 1.4.1.62, RAX15 before 1.0.1.64, RAX20 before 1.0.1.64, RAX75 before 1.0.3.102, RAX80 before 1.0.3.102, RAX200 before 1.0.2.102, RAX45 before 1.0.2.64, RAX50 before 1.0.2.64, EX7500 before 1.0.0.68, EAX80 before 1.0.1.62, EAX20 before 1.0.0.36, RBK752 before 3.2.16.6, RBK753 before 3.2.16.6, RBK753S before 3.2.16.6, RBK754 before 3.2.16.6, RBR750 before 3.2.16.6, RBS750 before 3.2.16.6, RBK852 before 3.2.16.6, RBK853 before 3.2.16.6, RBK854 before 3.2.16.6, RBR850 before 3.2.16.6, RBS850 before 3.2.16.6, RBR840 before 3.2.16.6, RBS840 before 3.2.16.6, R6120 before 1.0.0.70, R6220 before 1.1.0.100, R6230 before 1.1.0.100, R6260 before 1.1.0.76, R6850 before 1.1.0.76, R6350 before 1.1.0.76, R6330 before 1.1.0.76, D7800 before 1.0.1.58, RBK50 before 2.6.1.40, RBR50 before 2.6.1.40, RBS50 before 2.6.1.40, RBK40 before 2.6.1.36, RBR40 before 2.6.1.36, RBS40 before 2.6.1.38, RBK23 before 2.6.1.36, RBR20 before 2.6.1.38, RBS20 before 2.6.1.38, RBK12 before 2.6.1.44, RBK13 before 2.6.1.44, RBK14 before 2.6.1.44, RBK15 before 2.6.1.44, RBR10 before 2.6.1.44, RBS10 before 2.6.1.44, R6800 before 1.2.0.72, R6900v2 before 1.2.0.72, R6700v2 before 1.2.0.72, R7200 before 1.2.0.72, R7350 before 1.2.0.72, R7400 before 1.2.0.72, R7450 before 1.2.0.72, AC2100 before 1.2.0.72, AC2400 before 1.2.0.72, AC2600 before 1.2.0.72, R7800 before 1.0.2.74, R8900 before 1.0.5.24, R9000 before 1.0.5.24, RAX120 before 1.0.1.136, XR450 before 2.3.2.66, XR500 before 2.3.2.66, XR700 before 1.0.1.34, and XR300 before 1.0.3.50.

Weakness: CWE-120 (Buffer Copy without Checking Size of Input)

## Which versions are affected by CVE-2021-29068?

It affects 80 products.


Products: Netgear Ac2100 Firmware, Netgear Ac2400 Firmware, Netgear Ac2600 Firmware, Netgear Cbr40 Firmware, Netgear D7800 Firmware, Netgear Eax20 Firmware, Netgear Eax80 Firmware, Netgear Ex7500 Firmware, Netgear Mk60 Firmware, Netgear Mr60 Firmware, Netgear Ms60 Firmware, Netgear R6120 Firmware, Netgear R6220 Firmware, Netgear R6230 Firmware, Netgear R6260 Firmware, Netgear R6330 Firmware, Netgear R6350 Firmware, Netgear R6400 Firmware, Netgear R6700 Firmware, Netgear R6800 Firmware and 60 more.

## How do I fix CVE-2021-29068?

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

## Is CVE-2021-29068 being exploited?

There is no known exploitation of CVE-2021-29068 in the wild and no public exploit code.

## Other vulnerabilities in Netgear D7800 Firmware

- [CVE-2021-38516](https://insights.sbomify.com/CVE-2021-38516/): Missing authorization in n/a (critical 10.0)
- [CVE-2020-35795](https://insights.sbomify.com/CVE-2020-35795/): Memory corruption in n/a (critical 9.8)
- [CVE-2020-35800](https://insights.sbomify.com/CVE-2020-35800/): Misconfiguration in n/a (critical 9.4)
- [CVE-2020-26927](https://insights.sbomify.com/CVE-2020-26927/): Auth bypass in n/a (critical 9.4)
- [CVE-2021-34865](https://insights.sbomify.com/CVE-2021-34865/): Auth bypass in Multiple Routers (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-29068 and fix it if it is affected.

What it is: CVE-2021-29068 is a critical memory corruption vulnerability in Netgear D7800 Firmware, published on 23 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-29068 in the wild and no public exploit code.

Affected product: Netgear D7800 Firmware. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-29068/ (Markdown: https://insights.sbomify.com/CVE-2021-29068/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-29068
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-29068
- OSV: https://osv.dev/vulnerability/CVE-2021-29068

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-29068/
Summaries are generated and may contain mistakes; the official description above is the record.
