Unauthenticated command execution via unsanitized WAN parameters
Published May 12, 2022 · Updated Oct 21, 2025
OS command injection in Zyxel firewall firmware through 5.21 Patch 1 allows remote attackers to execute commands without authentication. The /ztp/cgi-bin/handler setWanPortSt path passes unsanitized mtu or data values to os.system in lib_wan_settings.py. The administrative HTTP interface must be network reachable; injected commands run as nobody and can modify specific files on the appliance.
Summary
What happened
OS command injection in Zyxel firewall firmware through 5.21 Patch 1 allows remote attackers to execute commands without authentication. The /ztp/cgi-bin/handler setWanPortSt path passes unsanitized mtu or data values to os.system in lib_wan_settings.py. The administrative HTTP interface must be network reachable; injected commands run as nobody and can modify specific files on the appliance.
The record
- CVE
- CVE-2022-30525
- Published
- May 12, 2022
- Updated
- Oct 21, 2025
- Vendor
- Zyxel Networks
- Product
- Zyxel USG FLEX 50W Firmware
- Classifications
- CWE-78, T1190, T1059.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 12, 2022CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.10 through 5.21 Patch 1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 9, 2026 | Unavailable |
| Sep 10, 2026 | Unavailable |
| Sep 11, 2026 | Unavailable |
| Sep 12, 2026 | Unavailable |
| Sep 13, 2026 | Unavailable |
| Sep 14, 2026 | 2 |
| Sep 15, 2026 | Unavailable |
Weakness, pattern, technique
Public exploit references
- Zyxel Firewall ZTP Unauthenticated Command Injection Metasploit modulefunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities catalog listingknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo