Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-30525: OS Command Injection in Zyxel Firewall CGI Handler

Published May 12, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS98.1%100th percentile
CISA KEVYesAdded May 16, 2022
In the wildActivePer CISA KEV
Vendor
Zyxel Communications
IdentifiersCVE-2022-30525CWE-78 · Improper Neutralization of Special…

CVE-2022-30525 is an operating system command injection vulnerability in the CGI program used by Zyxel firewall firmware, reachable through the Zero Touch Provisioning HTTP handler. Crafted requests can allow attackers to modify specific files and execute operating system commands on an affected device. Affected firmware includes USG FLEX 100(W), 200, 500, and 700 versions 5.00 through 5.21 Patch 1; USG FLEX 50(W), USG20(W)-VPN, and ATP series versions 5.10 through 5.21 Patch 1; and VPN series versions 4.60 through 5.21 Patch 1. The vulnerability has been exploited for malware propagation by botnets including GooberBot, Zerobot, and Mirai.TBOT.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits modification of specific device files and execution of operating system commands, compromising firewall integrity and potentially disrupting network security services. Observed exploitation has enabled malware installation and recruitment of vulnerable devices into DDoS botnets. The execution privilege level and complete scope of accessible files are not specified.

Mitigation

If you can’t patch tonight, do this now.

Until firmware updates can be applied, restrict access to the affected HTTPS/CGI service to trusted administrative networks and remove unnecessary Internet exposure. Where supported, use intrusion-prevention coverage for CVE-2022-30525 and monitor for unexpected outbound connections, malware downloads, and botnet activity. These measures reduce exposure but do not correct the vulnerable firmware.

Remediation

Patch, then assume compromise.

Apply vendor-provided firmware updates addressing CVE-2022-30525 for the affected model. The exact fixed firmware versions are not available in the supplied vulnerability details. For devices showing evidence of exploitation, investigate and remove malware or restore a trusted firmware and configuration baseline; patching alone does not remove an existing compromise.

Public exploits

Exploits

5 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
zyxel_ztp_rce.rbThis repository contains a single Metasploit module (modules/exploits/linux/http/zyxel_ztp_rce.rb) targeting CVE-2022-30525, an unauthenticated remote command injection vulnerability in Zyxel firewalls with Zero Touch Provisioning (ZTP) enabled. The exploit works by sending a crafted POST request to the /ztp/cgi-bin/handler endpoint, injecting OS commands via the 'mtu' field of the setWanPortSt command. The module supports both command shell and Meterpreter payloads, allowing for reverse shell access or more advanced post-exploitation. The module includes a check method to determine if the target is likely vulnerable based on the build date and model information from the landing page. The exploit is weaponized, leveraging Metasploit's payload and session management capabilities, and is suitable for use against a range of Zyxel firewall models running vulnerable firmware. The only file in the repository is the Metasploit module itself, written in Ruby.Disclosed Apr 28, 2022 · Framework: metasploit · ruby · networkWeaponizedvictorian_machineryThis repository contains a proof-of-concept exploit for CVE-2022-30525, a remote unauthenticated command injection vulnerability in several Zyxel firewall models. The main exploit script, 'victorian_machinery.py', is a Python program that takes attacker- and target-specific parameters (remote host/port, local host/port, protocol, and netcat path). It works by forking a process: the child sends a crafted HTTP POST request to the vulnerable Zyxel endpoint ('/ztp/cgi-bin/handler') with a malicious payload in the 'mtu' parameter, which triggers a reverse shell connection back to the attacker's machine. The parent process starts a netcat listener to catch the shell. The exploit is effective against unpatched Zyxel firewalls with the management web interface exposed. The repository is well-documented, with a detailed README explaining the vulnerability, affected models, usage instructions, and example output. No detection or scanning functionality is present; this is a direct exploitation tool.jbaines-r7 · Disclosed May 10, 2022 · python · networkPoCCVE-2022-30525This repository provides a Python proof-of-concept exploit for CVE-2022-30525, an unauthenticated remote command injection vulnerability in Zyxel firewalls. The main script, CVE-2022-30525.py, allows the user to specify a single target URL or a file containing multiple targets. It sends a crafted POST request to the /ztp/cgi-bin/handler endpoint on the target, injecting a command via the 'mtu' parameter in the JSON body. The injected command pings a unique domain obtained from dnslog.cn, and the script then checks dnslog.cn for evidence of the ping, confirming successful code execution. The exploit does not require authentication and is designed for detection and verification of the vulnerability, not for weaponized post-exploitation. The repository also includes a helper script (dnslog.py) for interacting with dnslog.cn and a sample target list file (ip.txt).Henry4E36 · Disclosed May 13, 2022 · python · networkPoCCVE-2022-30525-Reverse-ShellThis repository contains a Python exploit script (CVE-2022-30525.py) targeting Zyxel firewall devices running ZLD firmware versions 5.00 through 5.21. The exploit leverages an unauthenticated remote command injection vulnerability in the /ztp/cgi-bin/handler HTTP endpoint. The attacker supplies the target URL, a remote host, and a port; the script then sends a specially crafted JSON payload that injects a bash reverse shell command via the 'mtu' parameter. If successful, the target device initiates a reverse shell connection to the attacker's machine, granting remote command execution. The repository also includes a 'banner' file (ASCII art and credits) and a 'requirements.txt' specifying the 'requests' Python library. The exploit is operational, providing a working reverse shell payload, and is not part of a larger framework.Chocapikk · Disclosed May 18, 2022 · python · networkPoCCVE-2022-30525_ExploitThis repository contains a Python proof-of-concept exploit for CVE-2022-30525, a remote command injection vulnerability affecting multiple Zyxel firewall products. The main script, CVE-2022-30525.py, allows the user to test a single target or perform bulk scanning against multiple targets listed in a file. The exploit works by sending a crafted POST request to the /ztp/cgi-bin/handler endpoint on the target device, injecting a command via the 'mtu' parameter. The injected command triggers a DNS request to a domain controlled by dnslog.cn, allowing the script to verify successful command execution by checking for the corresponding DNS query. The repository also includes a README.md with detailed vulnerability information, affected products, and usage instructions. No weaponized payload is included; the exploit is designed for verification and demonstration purposes.arajsingh-infosec · Disclosed Feb 27, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Zyxel CommunicationsAtp100 Firmwareoperating_system
Zyxel CommunicationsAtp100w Firmwareoperating_system
Zyxel CommunicationsAtp200 Firmwareoperating_system
Zyxel CommunicationsAtp500 Firmwareoperating_system
Zyxel CommunicationsAtp700 Firmwareoperating_system
Zyxel CommunicationsAtp800 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 100w Firmwareoperating_system
Zyxel CommunicationsUsg Flex 200 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 500 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 50w Firmwareoperating_system
Zyxel CommunicationsUsg Flex 700 Firmwareoperating_system
Zyxel CommunicationsUsg20w-Vpn Firmwareoperating_system
Zyxel CommunicationsVpn100 Firmwareoperating_system
Zyxel CommunicationsVpn1000 Firmwareoperating_system
Zyxel CommunicationsVpn300 Firmwareoperating_system
Zyxel CommunicationsVpn50 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2022-30525 exploited in the wild?
Yes. As of Oct 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 16, 2022.
Is there a public exploit for CVE-2022-30525?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2022-30525, the earliest disclosed Apr 28, 2022.
Is there a patch for CVE-2022-30525?
Apply vendor-provided firmware updates addressing CVE-2022-30525 for the affected model. The exact fixed firmware versions are not available in the supplied vulnerability details.
What products are affected by CVE-2022-30525?
Zyxel Communications Atp100 Firmware, Zyxel Communications Atp100w Firmware, Zyxel Communications Atp200 Firmware, Zyxel Communications Atp500 Firmware, Zyxel Communications Atp700 Firmware, and 11 more.
How severe is CVE-2022-30525?
CVE-2022-30525 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.1% (100th percentile) as of Oct 26, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence3Every report linking this CVE to a named adversary.
Associated malware20Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.