CVE-2020-9054
Zyxel · published 2020-03-04
Source record Collected from the National Vulnerability Database (NVD)
CISA Known Exploited Vulnerabilities
CISA lists this CVE as known exploited (added 2022-03-25).
- CISA's name for it: Zyxel Multiple NAS Devices OS Command Injection Vulnerability
- CISA's description: 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.
- Known ransomware campaign use, per CISA: Unknown
Source: CISA KEV catalog (CC0 1.0).
Description
Description by CERT/CC via the CVE Program.
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
Filed by CERT/CC; not a statement by Zyxel.
Status at the source
- NVD status: Analyzed
Affected products, as the source lists them
| Vendor | Product | Versions |
|---|---|---|
| ZyXEL | NAS326 | V5.21(AAZF.7)C0 – V5.21(AAZF.7)C0 and earlier: affected |
| ZyXEL | NAS520 | V5.21(AASZ.3)C0 – V5.21(AASZ.3)C0 and earlier: affected |
| ZyXEL | NAS540 | V5.21(AATB.4)C0 – V5.21(AATB.4)C0 and earlier: affected |
| ZyXEL | NAS542 | V5.21(ABAG.4)C0 – V5.21(ABAG.4)C0 and earlier: affected |
| ZyXEL | NSA210 | all: affected |
| ZyXEL | NSA220 | all: affected |
| ZyXEL | NSA220+ | all: affected |
| ZyXEL | NSA221 | all: affected |
| ZyXEL | NSA310 | V4.75(AALH.2)C0 – V4.75(AALH.2)C0 and earlier: affected |
| ZyXEL | NSA320 | all: affected |
| ZyXEL | NSA320S | V4.75(AANV.2)C0 – V4.75(AANV.2)C0 and earlier: affected |
| ZyXEL | NSA325 | V4.81(AAAJ.1)C0 – V4.81(AAAJ.1)C0 and earlier: affected |
| ZyXEL | NSA325v2 | V4.81(AALS.1)C0 – V4.81(AALS.1)C0 and earlier: affected |
Products named in NVD's CPE match criteria (27)
cpe:2.3:o:zyxel:nas326_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:nas520_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:nas540_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:nas542_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:atp100_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:atp200_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:atp500_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:atp800_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg20-vpn_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg20w-vpn_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg40_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg40w_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg60_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg60w_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg110_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg210_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg310_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg1100_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg1900_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:usg2200_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:vpn50_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:vpn100_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:vpn300_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:vpn1000_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:zywall110_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:zywall310_firmware:*:*:*:*:*:*:*:*cpe:2.3:o:zyxel:zywall1100_firmware:*:*:*:*:*:*:*:*
DeSpy has not checked any unit, hardware revision or firmware. A product missing here is not a statement that it is unaffected.
Scores, as their sources published them
- CVSS 3.1: 9.8 CRITICAL — as published by NIST (Primary)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.1: 9.8 CRITICAL — as published by CISA-ADP (Secondary)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0: 10 HIGH — as published by NIST (Primary)
AV:N/AC:L/Au:N/C:C/I:C/A:C - SSVC — CISA's assessment (SSVC 2.0.3, CISA Coordinator): Exploitation: active · Automatable: no · Technical impact: total
DeSpy does not score records. These are the sources' own values.
Weaknesses
Sources
References the source lists
- https://cwe.mitre.org/data/definitions/78.html
- https://kb.cert.org/artifacts/cve-2020-9054.html
- https://kb.cert.org/vuls/id/498544/
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
- https://cwe.mitre.org/data/definitions/78.html
- https://kb.cert.org/artifacts/cve-2020-9054.html
- https://kb.cert.org/vuls/id/498544/
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-9054
Source dates: published 2020-03-04, last changed 2026-10-08. DeSpy's copy of this version is dated 2026-10-08.
This product uses the NVD API but is not endorsed or certified by the NVD.
CVE records: Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
CISA's Known Exploited Vulnerabilities catalog and CISA Vulnrichment data are CC0 1.0. CISA advisories are shown with the TLP label their document carries. No endorsement by CISA, DHS, NIST or MITRE is stated or implied.