# CVE-2022-30525: A OS command injection vulnerability in the CGI program of Zyxel USG FLEX 100(W) firmware versions 5.00 through 5.21 Pa…

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2022-05-16; federal due date 2022-06-06
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 98.08% (percentile 100, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** EDB-50946
- **Published:** 2022-05-12T13:05:11.000Z
- **Modified:** 2026-06-17T04:43:46.390Z

## Who should check

- Anyone running Zyxel USG FLEX 100(W) firmware 5.00 through 5.21 Patch 1
- Anyone running Zyxel USG FLEX 200 firmware 5.00 through 5.21 Patch 1
- Anyone running Zyxel USG FLEX 500 firmware 5.00 through 5.21 Patch 1
- Anyone running Zyxel USG FLEX 700 firmware 5.00 through 5.21 Patch 1
- Anyone running Zyxel ATP series firmware 5.10 through 5.21 Patch 1
- Anyone running Zyxel VPN series firmware 4.60 through 5.21 Patch 1
- Anyone running Zyxel USG FLEX 50(W) firmware 5.10 through 5.21 Patch 1
- Anyone running Zyxel USG 20(W)-VPN firmware 5.10 through 5.21 Patch 1

## Description

A OS command injection vulnerability in the CGI program of Zyxel USG FLEX 100(W) firmware versions 5.00 through 5.21 Patch 1, USG FLEX 200 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 500 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 700 firmware versions 5.00 through 5.21 Patch 1, USG FLEX 50(W) firmware versions 5.10 through 5.21 Patch 1, USG20(W)-VPN firmware versions 5.10 through 5.21 Patch 1, ATP series firmware versions 5.10 through 5.21 Patch 1, VPN series firmware versions 4.60 through 5.21 Patch 1, which could allow an attacker to modify specific files and then execute some OS commands on a vulnerable device.

## Affected and fixed versions

- Zyxel USG FLEX 100(W) firmware: 5.00 through 5.21 Patch 1 (cvelist)
- Zyxel USG FLEX 200 firmware: 5.00 through 5.21 Patch 1 (cvelist)
- Zyxel USG FLEX 500 firmware: 5.00 through 5.21 Patch 1 (cvelist)
- Zyxel USG FLEX 700 firmware: 5.00 through 5.21 Patch 1 (cvelist)
- Zyxel ATP series firmware: 5.10 through 5.21 Patch 1 (cvelist)
- Zyxel VPN series firmware: 4.60 through 5.21 Patch 1 (cvelist)
- Zyxel USG FLEX 50(W) firmware: 5.10 through 5.21 Patch 1 (cvelist)
- Zyxel USG 20(W)-VPN firmware: 5.10 through 5.21 Patch 1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Timeline

- 2022-05-12: Published
- 2022-05-16: Added to CISA KEV (exploited in the wild)
- 2022-06-06: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-30525. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-30525.md
Affected: Zyxel USG FLEX 100(W) firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 200 firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 500 firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 700 firmware 5.00 through 5.21 Patch 1; Zyxel ATP series firmware 5.10 through 5.21 Patch 1; Zyxel VPN series firmwa…
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for Zyxel USG FLEX 100(W) firmware, Zyxel USG FLEX 200 firmware, Zyxel USG FLEX 500 firmware, Zyxel USG FLEX 700 firmware, Zyxel ATP series firmware, Zyxel VPN series firmware: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-30525 being exploited?

Yes. CISA lists CVE-2022-30525 in its Known Exploited Vulnerabilities catalog since 2022-05-16, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 98.08% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-30525?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Zyxel USG FLEX 100(W) firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 200 firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 500 firmware 5.00 through 5.21 Patch 1; Zyxel USG FLEX 700 firmware 5.00 through 5.21 Patch 1; Zyxel ATP series firmware 5.10 through 5.21 Patch 1; Zyxel VPN series firmware 4.60 through 5.21 Patch 1; Zyxel USG FLEX 50(W) firmware 5.10 through 5.21 Patch 1; Zyxel USG 20(W)-VPN firmware 5.10 through 5.21 Patch 1.

### Is there a fix for CVE-2022-30525?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-30525?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://www.zyxel.com/support/Zyxel-security-advisory-for-OS-command-injection-vulnerability-of-firewalls.shtml>
- exploit: <http://packetstormsecurity.com/files/167176/Zyxel-Remote-Command-Execution.html>
- exploit: <http://packetstormsecurity.com/files/167182/Zyxel-Firewall-ZTP-Unauthenticated-Command-Injection.html>
- exploit: <http://packetstormsecurity.com/files/167372/Zyxel-USG-FLEX-5.21-Command-Injection.html>
- exploit: <http://packetstormsecurity.com/files/168202/Zyxel-Firewall-SUID-Binary-Privilege-Escalation.html>
- exploit: <https://www.exploit-db.com/exploits/50946>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-30525>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-30525>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/50946>
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2022-30525> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-30525>
