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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Zyxel Firewall ZTP Unauthenticated Command Injection
exploit/linux/http/zyxel_ztp_rce
Exploit-DB 1
- Zyxel USG FLEX 5.21 - OS Command Injection EDB-50946 · remote · Jun 3, 2022
GitHub 14 repositories · most starred shown
-
shuai06/CVE-2022-30525 ★ 33 · May 13, 2022
Zyxel 防火墙远程命令注入漏洞(CVE-2022-30525)批量检测脚本
-
jbaines-r7/victorian_machinery ★ 30 · May 10, 2022
Proof of concept exploit for CVE-2022-30525 (Zxyel firewall command injection)
-
Henry4E36/CVE-2022-30525 ★ 22 · May 13, 2022
Zyxel 防火墙远程命令注入漏洞(CVE-2022-30525)
-
west9b/CVE-2022-30525 ★ 12 · May 28, 2022
CVE-2022-30525 Zyxel 防火墙命令注入漏洞 POC&EXPC
-
savior-only/CVE-2022-30525 ★ 4 · May 13, 2022
Zyxel 防火墙未经身份验证的远程命令注入
-
iveresk/cve-2022-30525 ★ 3 · May 23, 2022
Initial POC for the CVE-2022-30525
-
Chocapikk/CVE-2022-30525-Reverse-Shell ★ 3 · May 18, 2022
Simple python script to exploit CVE-2022-30525 (FIXED): Zyxel Firewall Unauthenticated Remote Command Injection
-
k0sf/CVE-2022-30525 ★ 3 · May 16, 2022
CVE-2022-30525(Zxyel 防火墙命令注入)的概念证明漏洞利用
-
cbk914/CVE-2022-30525_check ★ 2 · Jan 15, 2023
-
M4fiaB0y/CVE-2022-30525 ★ 1 · May 15, 2022
Zyxel Firewall Remote Command Injection Vulnerability (CVE-2022-30525) Batch Detection Script
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Zyxel Firewall - OS Command Injection http/cves/2022/CVE-2022-30525.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
References
- https://www.zyxel.com/support/Zyxel-security-advisory-for-OS-command-injection-vulnerability-of-firewalls.shtml
- http://packetstormsecurity.com/files/167176/Zyxel-Remote-Command-Execution.html
- http://packetstormsecurity.com/files/167182/Zyxel-Firewall-ZTP-Unauthenticated-Command-Injection.html
- http://packetstormsecurity.com/files/167372/Zyxel-USG-FLEX-5.21-Command-Injection.html
- http://packetstormsecurity.com/files/168202/Zyxel-Firewall-SUID-Binary-Privilege-Escalation.html