← Vulnerability feed

Vulnerability record · CVE-2022-30525 · published 12 May 2022

CVE-2022-30525: Zyxel firewall CGI OS command injection

Zyxel · Usg Flex 100w Firmware

The CGI program in multiple Zyxel firewall and VPN firmware lines fails to neutralize OS command syntax, allowing command injection. The flaw affects USG FLEX, USG20(W)-VPN, ATP and VPN series devices running firmware 5.00 through 5.21 Patch 1 (4.60 for VPN series). It matters because these are internet-facing perimeter devices and the issue is remotely reachable without credentials.

9.8 CVSS 3.1 Critical CISA KEV since 16 May 2022 EPSS 100% · top 0.1% CWE-78 · OS command injection
9.8CVSS 3.1 base score, v2 10.0
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
16Affected product versions listed by NVD
11References, 6 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityUnauthenticated remote OS command injection on internet-facing perimeter devices, with CVSS 9.8, KEV listing and near-maximum EPSS, makes this an urgent patch-first item.

What it is

The CGI program in multiple Zyxel firewall and VPN firmware lines fails to neutralize OS command syntax, allowing command injection. The flaw affects USG FLEX, USG20(W)-VPN, ATP and VPN series devices running firmware 5.00 through 5.21 Patch 1 (4.60 for VPN series). It matters because these are internet-facing perimeter devices and the issue is remotely reachable without credentials.

Impact

An unauthenticated attacker can modify specific files and execute arbitrary OS commands on the device, gaining full control of the firewall. That yields high confidentiality, integrity and availability impact, including potential use of the device as a pivot into the internal network.

Attack surface

Reached over the network through the device's CGI interface, per the CVSS vector AV:N/AC:L/PR:N/UI:N, so no authentication and no user interaction are required. The description does not name the exact endpoint or parameter, only that the CGI program is the injection point.

Exploitation

CISA added it to the KEV catalog on 2022-05-16 with a 2022-06-06 remediation due date, and public exploit references are tagged Exploit on Packet Storm. EPSS is 0.99944 (99.972 percentile), indicating very high predicted exploitation activity; KEV lists no known ransomware campaign use.

What to do

  • Apply the vendor firmware update per the Zyxel security advisory, upgrading affected USG FLEX, USG20(W)-VPN, ATP and VPN series devices past 5.21 Patch 1.
  • Until patching is complete, remove management and CGI access from untrusted networks and restrict it to trusted administrative hosts.
  • Disable or block remote management (HTTP/HTTPS admin, and any WAN-facing ZTP or CGI endpoints) where operationally possible.
  • Monitor vendor advisories and CISA KEV for updated guidance, and inventory all listed models to confirm which remain unpatched.
  • If a device cannot be patched, isolate it on a segmented management network and treat it as untrusted.

Detection

  • Review firewall and web logs for requests to CGI endpoints from unexpected external source IPs, especially patterns suggesting command separators or shell metacharacters.
  • Alert on unexpected outbound connections or new processes originating from the firewall/VPN device itself.
  • Check device configuration and filesystem for unauthorized modifications, and compare against known-good baselines.
  • Hunt for signs of post-exploitation activity such as added accounts, changed admin credentials, or altered firewall rules.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2022-30525 to the Known Exploited Vulnerabilities catalog on 16 May 2022 as "Zyxel Multiple Firewalls OS Command Injection Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 6 June 2022.

Affected products

16 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-30525 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-33009Zyxel firewall notification function buffer overflowA buffer overflow in the notification function of multiple Zyxel firewall and VPN firmware lines (ATP, USG FLEX, USG20(W)-VPN, VPN, ZyWALL/USG) allow…KEVEPSS 28%analysed9.8CVE-2023-33010Zyxel firewall ID processing buffer overflow allows unauthenticated RCEA classic buffer overflow (CWE-120) exists in the ID processing function of multiple Zyxel firewall firmware lines, including ATP, USG FLEX, USG20(W)…KEVEPSS 29%analysed9.8CVE-2023-28771Zyxel firewall firmware OS command injection via crafted packetsZyxel ZyWALL/USG, VPN, USG FLEX and ATP series firmware mishandle error messages, allowing OS command injection. An unauthenticated remote attacker c…KEVEPSS 99%analysed9.8CVE-2020-29583Zyxel USG and ATP firmware hard-coded admin credentialZyxel USG and ATP firmware version 4.60 ships an undocumented account (zyfwp) whose password is stored in cleartext in the firmware and cannot be cha…KEVEPSS 90%analysed9.8CVE-2020-9054ZyXEL NAS weblogin.cgi pre-auth command injectionZyXEL NAS devices running firmware 5.21 fail to sanitize the username parameter in the weblogin.cgi CGI executable, allowing OS command injection. Be…KEVEPSS 100%analysed9.8CVE-2022-0342Zyxel firewall CGI authentication bypass grants admin accessThe CGI program in multiple Zyxel firewall firmware lines (USG/ZyWALL, USG FLEX, ATP, VPN, NSG) fails to properly enforce authentication, allowing a …EPSS 95%analysed8.8CVE-2023-27991Zyxel atp200 firmware os command injection vulnerabilityThe post-authentication command injection vulnerability in the CLI command of Zyxel ATP series firmware versions 4.32 through 5.35, USG FLEX series f…EPSS 1.5%8.1CVE-2023-6764Zyxel atp100 firmware vulnerabilityA format string vulnerability in a function of the IPSec VPN feature in Zyxel ATP series firmware versions from 4.32 through 5.37 Patch 1, USG FLEX s…EPSS 0.89%

Source: NIST National Vulnerability Database (record CVE-2022-30525), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.