# CVE-2022-39044: Command injection in Buffalo network devices

> A network-adjacent attacker with administrative privileges can execute arbitrary OS commands on multiple Buffalo network devices via hidden functionality.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`)
- **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:** 7 Dec 2022
- **Updated:** 23 Apr 2025
- **Also known as:** GHSA-mjw8-8wg8-qjw9

## What is CVE-2022-39044?

CVE-2022-39044 is a medium-severity command injection vulnerability in Buffalo network devices, published on 7 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Hidden functionality vulnerability in multiple Buffalo network devices allows a network-adjacent attacker with an administrative privilege to execute an arbitrary OS command. The affected products/versions are as follows: WCR-300 firmware Ver. 1.87 and earlier, WHR-HP-G300N firmware Ver. 2.00 and earlier, WHR-HP-GN firmware Ver. 1.87 and earlier, WPL-05G300 firmware Ver. 1.88 and earlier, WZR-300HP firmware Ver. 2.00 and earlier, WZR-450HP firmware Ver. 2.00 and earlier, WZR-600DHP firmware Ver. 2.00 and earlier, WZR-900DHP firmware Ver. 1.15 and earlier, WZR-HP-AG300H firmware Ver. 1.76 and earlier, WZR-HP-G302H firmware Ver. 1.86 and earlier, WLAE-AG300N firmware Ver. 1.86 and earlier, FS-600DHP firmware Ver. 3.40 and earlier, FS-G300N firmware Ver. 3.14 and earlier, FS-HP-G300N firmware Ver. 3.33 and earlier, FS-R600DHP firmware Ver. 3.40 and earlier, BHR-4GRV firmware Ver. 2.00 and earlier, DWR-HP-G300NH firmware Ver. 1.84 and earlier, DWR-PG firmware Ver. 1.83 and earlier, HW-450HP-ZWE firmware Ver. 2.00 and earlier, WER-A54G54 firmware Ver. 1.43 and earlier, WER-AG54 firmware Ver. 1.43 and earlier, WER-AM54G54 firmware Ver. 1.43 and earlier, WER-AMG54 firmware Ver. 1.43 and earlier, WHR-300 firmware Ver. 2.00 and earlier, WHR-300HP firmware Ver. 2.00 and earlier, WHR-AM54G54 firmware Ver. 1.43 and earlier, WHR-AMG54 firmware Ver. 1.43 and earlier, WHR-AMPG firmware Ver. 1.52 and earlier, WHR-G firmware Ver. 1.49 and earlier, WHR-G300N firmware Ver. 1.65 and earlier, WHR-G301N firmware Ver. 1.87 and earlier, WHR-G54S firmware Ver. 1.43 and earlier, WHR-G54S-NI firmware Ver. 1.24 and earlier, WHR-HP-AMPG firmware Ver. 1.43 and earlier, WHR-HP-G firmware Ver. 1.49 and earlier, WHR-HP-G54 firmware Ver. 1.43 and earlier, WLI-H4-D600 firmware Ver. 1.88 and earlier, WLI-TX4-AG300N firmware Ver. 1.53 and earlier, WS024BF firmware Ver. 1.60 and earlier, WS024BF-NW firmware Ver. 1.60 and earlier, WZR2-G108 firmware Ver. 1.33 and earlier, WZR2-G300N firmware Ver. 1.55 and earlier, WZR-450HP-CWT firmware Ver. 2.00 and earlier, WZR-450HP-UB firmware Ver. 2.00 and earlier, WZR-600DHP2 firmware Ver. 1.15 and earlier, WZR-AGL300NH firmware Ver. 1.55 and earlier, WZR-AMPG144NH firmware Ver. 1.49 and earlier, WZR-AMPG300NH firmware Ver. 1.51 and earlier, WZR-D1100H firmware Ver. 2.00 and earlier, WZR-G144N firmware Ver. 1.48 and earlier, WZR-G144NH firmware Ver. 1.48 and earlier, WZR-HP-G300NH firmware Ver. 1.84 and earlier, WZR-HP-G301NH firmware Ver. 1.84 and earlier, and WZR-HP-G450H firmware Ver. 1.90 and earlier.

## Which versions are affected by CVE-2022-39044?

It affects 54 products.


Products: Buffalo Bhr-4grv Firmware, Buffalo Dwr-Hp-G300nh Firmware, Buffalo Dwr-Pg Firmware, Buffalo Fs-600dhp Firmware, Buffalo Fs-G300n Firmware, Buffalo Fs-Hp-G300n Firmware, Buffalo Fs-R600dhp Firmware, Buffalo Hw-450hp-Zwe Firmware, Buffalo Wcr-300 Firmware, Buffalo Wer-A54g54 Firmware, Buffalo Wer-Ag54 Firmware, Buffalo Wer-Am54g54 Firmware, Buffalo Wer-Amg54 Firmware, Buffalo Whr-300 Firmware, Buffalo Whr-300hp Firmware, Buffalo Whr-Am54g54 Firmware, Buffalo Whr-Amg54 Firmware, Buffalo Whr-Ampg Firmware, Buffalo Whr-G300n Firmware, Buffalo Whr-G301n Firmware and 34 more.

## How do I fix CVE-2022-39044?

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

## Is CVE-2022-39044 being exploited?

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

## Other vulnerabilities in Buffalo network devices

- [CVE-2022-40966](https://insights.sbomify.com/CVE-2022-40966/): Auth bypass in Buffalo network devices (high 8.8)
- [CVE-2021-3512](https://insights.sbomify.com/CVE-2021-3512/): Auth bypass in Buffalo broadband routers (high 8.8)
- [CVE-2016-4816](https://insights.sbomify.com/CVE-2016-4816/): Information disclosure in n/a (medium 6.5)
- [CVE-2021-3511](https://insights.sbomify.com/CVE-2021-3511/): Information disclosure in Buffalo broadband routers (medium 4.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-39044 and fix it if it is affected.

What it is: CVE-2022-39044 is a medium-severity command injection vulnerability in Buffalo network devices, published on 7 Dec 2022. 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-2022-39044 in the wild and no public exploit code.

Affected product: Buffalo network devices. 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-2022-39044/ (Markdown: https://insights.sbomify.com/CVE-2022-39044/index.md)
```

## Sources

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

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