Zyxel USG FLEX 100(W) firmware
Zyxel Multiple Firewalls OS Command Injection Vulnerability
Edge device · Router / network deviceknown edge product: Zyxel USG FLEX 100(W) firmware Zyxel Multiple (high confidence)
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.
Timeline
Days relative to CVE publicationFirst public PoC 23 h after publication; added to CISA KEV 4 days after publication. First PoC: Henry4E36/CVE-2022-30525 (created 13 May 2022, found by us: backfilled).
PoC repositories
Found on GitHub.14 PoCs · 6 pending · 2 informational
PoCs 14
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jbaines-r7/victorian_machinery | 10 May 2022 −2.1 d | 30 | PoC older repo: PoC date unknown, not used for the first PoC |
| Henry4E36/CVE-2022-30525 | 13 May 2022 +23 h | 22 | PoC |
| shuai06/CVE-2022-30525 | 13 May 2022 +24 h | 33 | PoC |
| savior-only/CVE-2022-30525 | 13 May 2022 +1.2 d | 4 | PoC |
| M4fiaB0y/CVE-2022-30525 | 15 May 2022 +2.7 d | 1 | PoC |
| YGoldking/CVE-2022-30525 | 16 May 2022 +3.7 d | 3 | PoC |
| k0sf/CVE-2022-30525 | 16 May 2022 +3.7 d | 3 | PoC |
| superzerosec/CVE-2022-30525 | 16 May 2022 +3.8 d | 1 | PoC |
| Chocapikk/CVE-2022-30525-Reverse-Shell | 18 May 2022 +6.1 d | 3 | PoC |
| iveresk/cve-2022-30525 | 23 May 2022 +11 d | 3 | PoC |
| west9b/CVE-2022-30525 | 28 May 2022 +16 d | 12 | PoC |
| west9b/F5-BIG-IP-POC | 28 May 2022 +16 d | 10 | PoC via PoC Index |
| ProngedFork/CVE-2022-30525 | 13 Jun 2022 +32 d | 1 | PoC |
| arajsingh-infosec/CVE-2022-30525_Exploit | 27 Feb 2024 +1.8 y | 1 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Pending 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| cbk914/CVE-2022-30525_check | 15 Jan 2023 +248 d | 2 | Pending · mkdir /quarantine/cbk914__CVE-2022-30525_check-04ea62a871d4: permission denied |
| 5l1v3r1/CVE-2022-30525-Reverse-Shell | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| ExploitPwner/CVE-2022-30525-Zyxel-Mass-Exploiter | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| kuznyJan1972/CVE-2022-30525-mass | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| trhacknon/CVE-2022-30525-Reverse-Shell | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| zhefox/CVE-2022-30525-Reverse-Shell | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Fans0n-Fan/Awesome-IoT-exp | 7 Jun 2021 −339 d | 1 | Informational · list |
| furkanzengin/CVE-2022-30525 | 12 Jun 2022 +31 d | 1 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Zyxel USG FLEX 5.21 - OS Command Injection | 3 Jun 2022 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Zyxel Firewall ZTP Unauthenticated Command Injection (exploit/linux/http/zyxel_ztp_rce) | unknown | 14 Nov 2026 |
| nuclei template | nuclei template: Zyxel Firewall - OS Command Injection | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 14 PoC reposPOST /ztp/cgi-bin/handler
- Body markers
"command":"setWanPortSt""proto":"dhcp""port":"4""vlan_tagged":"1""vlanid":"5""mtu""data":"request"inapplication/json- Ports
- 8080, 9443
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0- Seen in
- 7 repos: Henry4E36/CVE-2022-30525, M4fiaB0y/CVE-2022-30525, ProngedFork/CVE-2022-30525, arajsingh-infosec/CVE-2022-30525_Exploit, savior-only/CVE-2022-30525, shuai06/CVE-2022-30525, superzerosec/CVE-2022-30525
- Evidence
- Henry4E36/CVE-2022-30525/CVE-2022-30525.py:41 M4fiaB0y/CVE-2022-30525/CVE-2022-30525.py:51 ProngedFork/CVE-2022-30525/CVE-2022-30525.py:43 arajsingh-infosec/CVE-2022-30525_Exploit/CVE-2022-30525.py:43 savior-only/CVE-2022-30525/CVE-2022-30525.py:74 shuai06/CVE-2022-30525/CVE-2022-30525-POC.py:51
GET /api/dns/uwpn82sm/{var}/
- Query
token=adb6ca99- Seen in
- 1 repo: west9b/CVE-2022-30525
- Evidence
- west9b/CVE-2022-30525/Pocdnslog.go:33
POST //https://{var}/ztp/cgi-bin/handler/ztp/cgi-bin/handler/ztp/cgi-bin/handler
- Key headers
{var}: {var}- Seen in
- 1 repo: iveresk/cve-2022-30525
- Evidence
- iveresk/cve-2022-30525/exploit/exploit.go:50
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/ztp/cgi-bin/handler(?:[?#].*)?$
(?i)^/api/dns/uwpn82sm/[^/?#]*/\?(?:.*&)?token=adb6ca99
(?i)^//https://[^/?#]*/ztp/cgi-bin/handler/ztp/cgi-bin/handler/ztp/cgi-bin/handler(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,9443] (msg:"GG PoC-Monitor CVE-2022-30525 Zyxel USG FLEX 100(W) firmware exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ztp/cgi-bin/handler"; http.request_body; content:"|22|command|22|:|22|setWanPortSt|22|"; http.request_body; content:"|22|proto|22|:|22|dhcp|22|"; http.request_body; content:"|22|port|22|:|22|4|22|"; http.request_body; content:"|22|vlan_tagged|22|:|22|1|22|"; http.request_body; content:"|22|vlanid|22|:|22|5|22|"; http.request_body; content:"|22|mtu|22|"; http.request_body; content:"|22|data|22|:|22|request|22|"; reference:url,poc.griffinguard.io/cve/CVE-2022-30525; classtype:web-application-attack; sid:9842396; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-30525 Zyxel USG FLEX 100(W) firmware exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/dns/uwpn82sm/"; http.uri; content:"token=adb6ca99"; reference:url,poc.griffinguard.io/cve/CVE-2022-30525; classtype:web-application-attack; sid:9758893; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2022-30525 Zyxel USG FLEX 100(W) firmware exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ztp/cgi-bin/handler/ztp/cgi-bin/handler/ztp/cgi-bin/handler"; http.uri; content:"//https://"; http.header_names; content:"{var}"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-30525; classtype:web-application-attack; sid:9394002; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Zyxel USG FLEX 100(W) firmware exploit attempt (CVE-2022-30525)
id: gg-pocmon-cve-2022-30525-9842396
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-30525. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-30525
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ztp/cgi-bin/handler'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.30525
title: Zyxel USG FLEX 100(W) firmware exploit attempt (CVE-2022-30525)
id: gg-pocmon-cve-2022-30525-9758893
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-30525. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-30525
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/dns/uwpn82sm/'
cs-uri-query|contains|all:
- 'token=adb6ca99'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.30525
title: Zyxel USG FLEX 100(W) firmware exploit attempt (CVE-2022-30525)
id: gg-pocmon-cve-2022-30525-9394002
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-30525. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-30525
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ztp/cgi-bin/handler/ztp/cgi-bin/handler/ztp/cgi-bin/handler'
- '//https://'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2022.30525