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

> Authenticated attackers can trigger a stack-based buffer overflow in NETGEAR routers, potentially leading to code execution or privilege escalation.

- **Severity:** Medium 4.5 (`CVSS:3.1/AC:L/AV:A/A:H/C:N/I:N/PR:H/S:U/UI:N`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 11 Aug 2021
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-rvhq-x923-4p9x

## What is CVE-2021-38524?

CVE-2021-38524 is a medium-severity memory corruption vulnerability in Netgear Rax200 Firmware, published on 11 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Certain NETGEAR devices are affected by a stack-based buffer overflow by an authenticated user. This affects MK62 before 1.0.6.110, MR60 before 1.0.6.110, MS60 before 1.0.6.110, RAX15 before 1.0.2.82, RAX20 before 1.0.2.82, RAX200 before 1.0.3.106, RAX45 before 1.0.2.32, RAX50 before 1.0.2.32, RAX75 before 1.0.3.106, RAX80 before 1.0.3.106, RBK752 before 3.2.16.6, RBR750 before 3.2.16.6, and RBS750 before 3.2.16.6.

Weakness: CWE-787 (Out-of-bounds Write)

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

It affects 13 products.


Products: Netgear Mk62 Firmware, Netgear Mr60 Firmware, Netgear Ms60 Firmware, Netgear Rax15 Firmware, Netgear Rax200 Firmware, Netgear Rax20 Firmware, Netgear Rax45 Firmware, Netgear Rax50 Firmware, Netgear Rax75 Firmware, Netgear Rax80 Firmware, Netgear Rbk752 Firmware, Netgear Rbr750 Firmware, Netgear Rbs750 Firmware.

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

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

## Is CVE-2021-38524 being exploited?

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

## Other vulnerabilities in Netgear Rax200 Firmware

- [CVE-2020-14429](https://insights.sbomify.com/CVE-2020-14429/): Information disclosure in n/a (critical 9.6)
- [CVE-2021-29073](https://insights.sbomify.com/CVE-2021-29073/): Memory corruption in n/a (high 7.6)

## Fix prompt for AI coding agents

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

What it is: CVE-2021-38524 is a medium-severity memory corruption vulnerability in Netgear Rax200 Firmware, published on 11 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-38524 in the wild and no public exploit code.

Affected product: Netgear Rax200 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-38524/ (Markdown: https://insights.sbomify.com/CVE-2021-38524/index.md)
```

## Sources

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

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