CVE DatabaseCVE-2022-30525
한국어 권고문 →
CVE-2022-305259.8/CRITICALCISA KEVCWE-78CWE-78

Zyxel Firewall and VPN Devices Remote OS Command Injection Vulnerability (CVE-2022-30525) Technical Advisory

⚡ Jump to Patch
Affected Vendors
zyxel
Affected Components
usg flex 100, usg flex 100w, usg flex 200, usg flex 500, usg flex 700, usg flex 50, usg flex 50w, usg20-vpn, usg20w-vpn, atp series, vpn series
Published Date
2022-05-12
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
99.9%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Zyxel USG FLEX, ATP, and VPN series firewalls running vulnerable firmware versions (with ZTP enabled)

Impact

Unauthenticated remote attackers can execute arbitrary OS commands with root privileges by sending crafted HTTP POST requests, leading to complete device compromise

Mitigation

Immediately upgrade to the patched firmware versions recommended by Zyxel and restrict external access to the management interface

Affected Products & Version Scope

Zyxel USG FLEX 50(W)/100(W)/200/500/700 (firmware v5.00 to v5.21 Patch 1), USG20(W)-VPN (firmware v5.10 to v5.21 Patch 1), ATP series (firmware v5.10 to v5.21 Patch 1), and VPN series (firmware v4.60 to v5.21 Patch 1)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official firmware updates (v5.21 Patch 2 or v5.30 and later) provided by Zyxel immediately. Use the CLI commands below to apply the firmware update:

bash
# Download and apply the patched firmware via SFTP/FTP
# (Adjust variables to match your environment and model)
router# copy sftp://admin@updates.zyxel.com/firmware/V5.21_Patch2.bin running-firmware
router# write memory
router# reboot

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, disable WAN-side access to the HTTPS/HTTP management interface or restrict access to trusted administrative IP addresses.

bash
# Example CLI commands to block WAN-side HTTPS access
router# configure terminal
router# address-object WAN_IP ipv4 0.0.0.0 0.0.0.0
router# firewall-rule block_wan_web
router# active
router# action deny
router# source WAN_IP
router# destination any
router# service HTTPS
router# exit

3. Log Audit & IoC Verification Commands

Inspect web server access logs for suspicious POST requests targeting the /cgi-bin/handler-mapp endpoint containing shell metacharacters.

bash
# Search for exploitation attempts in the web access logs
grep -i 'handler-mapp' /var/log/httpd/access_log | grep -E '(\||;|\&|\$\()' 

# Verify the current running firmware version
router# show version
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation in the wild (CISA KEV), immediately update all internet-facing Zyxel firewalls to the latest patched firmware.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2022-30525) is an OS command injection flaw (CWE-78) located within the CGI program /cgi-bin/handler-mapp of Zyxel firewall devices. The root cause lies in the insufficient validation of input parameters during the Zero Touch Provisioning (ZTP) configuration process. External inputs are passed directly to system shell execution functions without proper sanitization, allowing unauthenticated remote command execution.

2. Exploitation Mechanics & Attack Scenario

An attacker sends a crafted HTTP POST request containing a malicious JSON payload to the /cgi-bin/handler-mapp endpoint, which is exposed on the WAN or LAN interface (typically on TCP port 443 or 80). The CGI binary parses the JSON and extracts parameters such as host or proto under the ztp action. Because these parameters are concatenated directly into shell commands, characters like semicolons (;), backticks, or command substitution syntax ($()) allow the attacker to chain and execute arbitrary OS commands under root privileges.

3. Infrastructure & Business Impact

With a CVSS score of 9.8 (Critical) and its inclusion in the CISA KEV catalog, this vulnerability represents an active and severe threat. Since firewalls serve as the perimeter defense, a compromise allows attackers to bypass security controls, establish persistent reverse shells, pivot laterally into the internal network, and deploy ransomware or exfiltrate sensitive data.

Official Vendor Advisories & References

NVD Original English 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.

Frequently Asked SecOps Questions (CVE-2022-30525)

FAQ

Q1. How critical is CVE-2022-30525 and is it actively exploited in the wild?

CVE-2022-30525 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 99.9%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2022-30525?

Primary impacted vendors include zyxel across usg flex 100, usg flex 100w, usg flex 200, usg flex 500, usg flex 700, usg flex 50, usg flex 50w, usg20-vpn, usg20w-vpn, atp series, vpn series. Scope summary: Zyxel USG FLEX 50(W)/100(W)/200/500/700 (firmware v5.00 to v5.21 Patch 1), USG20(W)-VPN (firmware v5.10 to v5.21 Patch 1), ATP series (firmware v5.10 to v5.21 Patch 1), and VPN series (firmware v4.60 to v5.21 Patch 1)

Q3. What temporary mitigations or workarounds exist for CVE-2022-30525 before patching?

[Mitigation] Immediately upgrade to the patched firmware versions recommended by Zyxel and restrict external access to the management interface Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2022-30525

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (zyxel)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2022-30525 Zyxel Firewall and VPN Devices Remote OS Command Injection Vulnerability (CVE-2022-30525) Technical Advisory (CVSS 9.8) - Patch & Workaround | CVE Pulse