CVE-2022-30525A 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…
- 9.8CriticalCVSS base score
- 99.9%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 16 May 2022
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Zyxel Multiple Firewalls OS Command Injection Vulnerability.
- Added
- 16 May 2022
- Fix due (US federal)
- 6 Jun 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 16 May 2022.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and an Exploit-DB entry for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits3
Metasploit modules1 module
- Zyxel Firewall ZTP Unauthenticated Command Injection (Metasploit module) (opens in a new tab)
exploit/linux/http/zyxel_ztp_rceRank excellentdisclosed 28 Apr 2022
Nuclei templates1 template
- Zyxel Firewall - OS Command Injection (Nuclei template) (opens in a new tab)
http/cves/2022/CVE-2022-30525.yamlSeverity critical
Exploit-DB1 entry
- Zyxel USG FLEX 5.21 - OS Command Injection (Exploit-DB entry) (opens in a new tab)
EDB-ID 50946remote, hardwarepublished 3 Jun 2022Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By Zyxel
- 2 days later
· 2 days later
Published
- 4 days later
· 4 days later
Added to CISA KEV
Known exploited in the wild
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| ZyxelCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.9% · top 0.1% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Zyxel · USG FLEX 100(W) firmware
- affected 5.00 through 5.21 Patch 1
- affected 5.00 through 5.21 Patch 1
- affected 5.00 through 5.21 Patch 1
- affected 5.00 through 5.21 Patch 1
- affected 5.10 through 5.21 Patch 1
- affected 4.60 through 5.21 Patch 1
Zyxel · USG FLEX 50(W) firmware
- affected 5.10 through 5.21 Patch 1
Zyxel · USG 20(W)-VPN firmware
- affected 5.10 through 5.21 Patch 1
References
References6
- https://www.zyxel.com/support/Zyxel-security-advisory-for-OS-command-injection-vulnerability-of-firewalls.shtml (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://packetstormsecurity.com/files/167176/Zyxel-Remote-Command-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/167182/Zyxel-Firewall-ZTP-Unauthenticated-Command-Injection.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/167372/Zyxel-USG-FLEX-5.21-Command-Injection.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/168202/Zyxel-Firewall-SUID-Binary-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-30525 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-52385 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-30525)Record last updated .