# CVE-2021-45557: Command injection in n/a

> An authenticated attacker can execute arbitrary commands on NETGEAR managed switches via a command injection vulnerability.

- **Severity:** High 7.5 (`CVSS:3.1/AC:H/AV:A/A:H/C:L/I:H/PR:H/S:C/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:** 26 Dec 2021
- **Updated:** 4 Aug 2024
- **Also known as:** GHSA-h2pj-589h-m8gr

## What is CVE-2021-45557?

CVE-2021-45557 is a high-severity command injection vulnerability in n/a, published on 26 Dec 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 command injection by an authenticated user. This affects GC108P before 1.0.8.2, GC108PP before 1.0.8.2, GS108Tv3 before 7.0.7.2, GS110TPv3 before 7.0.7.2, GS110TPP before 7.0.7.2, GS110TUP before 1.0.5.3, GS710TUP before 1.0.5.3, GS308T before 1.0.3.2, GS310TP before 1.0.3.2, GS710TUP before 1.0.5.3, GS716TP before 1.0.4.2, GS716TPP before 1.0.4.2, GS724TPP before 2.0.6.3, GS724TPv2 before 2.0.6.3, GS724TPP before 2.0.6.3, GS728TPPv2 before 6.0.8.2, GS728TPv2 before 6.0.8.2, GS752TPv2 before 6.0.8.2, GS752TPP before 6.0.8.2, GS750E before 1.0.1.10, MS510TXM before 1.0.4.2, and MS510TXUP before 1.0.4.2.

Weakness: CWE-77 (Improper Neutralization of Special Elements used in a Command)

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

It affects 20 products.


Products: Netgear Gc108p Firmware, Netgear Gc108pp Firmware, Netgear Gs108tv3 Firmware, Netgear Gs110tpp Firmware, Netgear Gs110tpv3 Firmware, Netgear Gs110tup Firmware, Netgear Gs308t Firmware, Netgear Gs310tp Firmware, Netgear Gs710tup Firmware, Netgear Gs716tp Firmware, Netgear Gs716tpp Firmware, Netgear Gs724tpp Firmware, Netgear Gs724tpv2 Firmware, Netgear Gs728tppv2 Firmware, Netgear Gs728tpv2 Firmware, Netgear Gs750e Firmware, Netgear Gs752tpp Firmware, Netgear Gs752tpv2 Firmware, Netgear Ms510txm Firmware, Netgear Ms510txup Firmware.

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

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

## Is CVE-2021-45557 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2021-40866](https://insights.sbomify.com/CVE-2021-40866/): Auth bypass in n/a (critical 9.8)
- [CVE-2021-41314](https://insights.sbomify.com/CVE-2021-41314/): Auth bypass in n/a (high 8.8)
- [CVE-2021-33514](https://insights.sbomify.com/CVE-2021-33514/): Command injection in n/a (high 8.8)
- [CVE-2021-40867](https://insights.sbomify.com/CVE-2021-40867/): Race condition in n/a (high 7.8)

## Fix prompt for AI coding agents

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

What it is: CVE-2021-45557 is a high-severity command injection vulnerability in n/a, published on 26 Dec 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-45557 in the wild and no public exploit code.

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

## Sources

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

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