CVE-2020-9054
CONFIRMED EXPLOITEDZyxel Multiple NAS Devices OS Command Injection Vulnerability
Is Zyxel Multiple Network-Attached Storage (NAS) Devices affected by CVE-2020-9054?
Zyxel Multiple Network-Attached Storage (NAS) Devices is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2020-9054, added on 2022-03-25. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (20 vulnerable CPE entries): zyxel atp100_firmware, zyxel atp200_firmware, zyxel atp500_firmware, zyxel atp800_firmware, zyxel nas326_firmware and zyxel nas520_firmware and 14 further CPE product entries.
Published CPE version bounds mark releases below 5.21\(abag.7\)c0 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-04-15.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2023-27992Same productZyxel Multiple Network-Attached Storage (NAS) Devices
Zyxel Multiple NAS Devices Command Injection Vulnerability
- CVE-2026-7273Same vendorZyxel GS1900 Series Switches
Zyxel GS1900 Series Switches Stack-Based Buffer Overflow Vulnerability
- CVE-2024-40891Same vendorZyxel DSL CPE Devices
Zyxel DSL CPE OS Command Injection Vulnerability
- CVE-2024-40890Same vendorZyxel DSL CPE Devices
Zyxel DSL CPE OS Command Injection Vulnerability
- CVE-2020-7247Neighboring entryOpenBSD OpenSMTPD
OpenSMTPD Remote Code Execution Vulnerability
- CVE-2020-9377Neighboring entryD-Link DIR-610 Devices
D-Link DIR-610 Devices Remote Command Execution
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Multiple Zyxel network-attached storage (NAS) devices contain a pre-authentication command injection vulnerability, which may allow a remote, unauthenticated attacker to execute arbitrary code.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
Multiple ZyXEL network-attached storage (NAS) devices running firmware version 5.21 contain a pre-authentication command injection vulnerability, which may allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable device. ZyXEL NAS devices achieve authentication by using the weblogin.cgi CGI executable. This program fails to properly sanitize the username parameter that is passed to it. If the username parameter contains certain characters, it can allow command injection with the privileges of the web server that runs on the ZyXEL device. Although the web server does not run as the root user, ZyXEL devices include a setuid utility that can be leveraged to run any command with root privileges. As such, it should be assumed that exploitation of this vulnerability can lead to remote code execution with root privileges. By sending a specially-crafted HTTP POST or GET request to a vulnerable ZyXEL device, a remote, unauthenticated attacker may be able to execute arbitrary code on the device. This may happen by directly connecting to a device if it is directly exposed to an attacker. However, there are ways to trigger such crafted requests even if an attacker does not have direct connectivity to a vulnerable devices. For example, simply visiting a website can result in the compromise of any ZyXEL device that is reachable from the client system. Affected products include: NAS326 before firmware V5.21(AAZF.7)C0 NAS520 before firmware V5.21(AASZ.3)C0 NAS540 before firmware V5.21(AATB.4)C0 NAS542 before firmware V5.21(ABAG.4)C0 ZyXEL has made firmware updates available for NAS326, NAS520, NAS540, and NAS542 devices. Affected models that are end-of-support: NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325 and NSA325v2
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-03-25. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Multiple Network-Attached Storage (NAS) Devices has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Perimeter appliance / gateway surface (Zyxel Multiple Network-Attached Storage (NAS) Devices): stream syslog, NetFlow, and authentication telemetry off-box to an independent collector (`Zeek`, `Suricata`, `Wazuh`) so logs survive appliance tampering. Inspect `conn.log` / `ssl.log` for unauthenticated probes against exposed VPN or management interfaces.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running Zyxel Multiple Network-Attached Storage (NAS) Devices and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- https://cwe.mitre.org/data/definitions/78.htmlThird Party Advisory
- https://kb.cert.org/artifacts/cve-2020-9054.htmlThird Party AdvisoryUS Government Resource
- https://kb.cert.org/vuls/id/498544/Third Party AdvisoryUS Government Resource
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/ExploitThird Party Advisory
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtmlVendor Advisory
- https://cwe.mitre.org/data/definitions/78.htmlThird Party Advisory
- https://kb.cert.org/artifacts/cve-2020-9054.htmlThird Party AdvisoryUS Government Resource
- https://kb.cert.org/vuls/id/498544/Third Party AdvisoryUS Government Resource
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/ExploitThird Party Advisory
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtmlVendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-9054US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
Modern, cryptographically opinionated kernel-space VPN tunnel
Endpoint visibility, digital forensics, and incident response (DFIR) platform