CVE-2020-9054: Pre-authentication OS command injection in Zyxel NAS and firewall products
- Vendor
- Zyxel Communications
CVE-2020-9054 is a pre-authentication OS command injection vulnerability in the web login CGI authentication handler of multiple Zyxel NAS and firewall products. Insufficient sanitization of the username parameter allows specially crafted HTTP GET or POST requests to execute arbitrary commands with web-server privileges. On affected NAS devices, a setuid utility can subsequently provide root-level command execution. Affected products include unpatched NAS devices running firmware 5.21 and earlier and certain UTM, ATP, and VPN firewalls running ZLD V4.35 Patch 0 through Patch 2; earlier firewall firmware is not affected. Exploitation can occur through direct network access or through a malicious website visited by a client that can reach the vulnerable device. The vulnerability has been exploited in the wild, including to deploy the Mirai variant Mukashi.
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 unauthenticated remote command execution and device takeover. On affected NAS devices, attackers can elevate execution from the web-server account to root through an existing setuid utility, enabling privileged access to device data and configuration and disruption of device operation. A public proof of concept demonstrates device shutdown, and observed exploitation has deployed botnet malware.
Mitigation
If you can’t patch tonight, do this now.
Remove direct internet exposure and place affected devices behind a filtering security router or firewall, particularly when firmware updates are unavailable. This is a partial workaround: a malicious website can trigger exploitation when the visiting client can reach a vulnerable device. Exploit-specific intrusion-prevention coverage is available for Zyxel NAS pre-authentication OS command injection.
Remediation
Patch, then assume compromise.
Install the applicable model-specific Zyxel firmware update. Updated NAS releases include NAS326 V5.21(AAZF.10)C0, NAS520 V5.21(AASZ.3)C0, NAS540 V5.21(AATB.7)C0, and NAS542 V5.21(ABAG.7)C0. The NAS520 firmware requires contacting local support because the product is end-of-life. Affected ATP, USG, USG-VPN, VPN, and ZyWALL firewalls require their applicable patched V4.35 firmware releases. No corrective updates are provided for affected unsupported NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325, and NSA325v2 devices; decommissioning or replacing these devices is recommended.
Exploits
1 exploit validated by Mallory's analysis.
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.
References
Frequently asked questions
- Is CVE-2020-9054 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
- Is there a public exploit for CVE-2020-9054?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2020-9054, the earliest disclosed Sep 9, 2021.
- Is there a patch for CVE-2020-9054?
- Install the applicable model-specific Zyxel firmware update. Updated NAS releases include NAS326 V5.21(AAZF.10)C0, NAS520 V5.21(AASZ.3)C0, NAS540 V5.21(AATB.7)C0, and NAS542 V5.21(ABAG.7)C0.
- What products are affected by CVE-2020-9054?
- Zyxel Communications Atp100 Firmware, Zyxel Communications Atp200 Firmware, Zyxel Communications Atp500 Firmware, Zyxel Communications Atp800 Firmware, Zyxel Communications Nas326 Firmware, and at least 22 more.
- How severe is CVE-2020-9054?
- CVE-2020-9054 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 16, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.