CVE-2020-9054
Description
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
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Zyxel Multiple NAS Devices OS Command Injection Vulnerability |
|---|---|
| Vendor / product | Zyxel / Multiple Network-Attached Storage (NAS) Devices |
| Date added | 2022-03-25 |
| Federal remediation due date | 2022-04-15 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2025-02-07 |
Timeline
- 2020-03-04Published by the CNA19:30 UTC
- 2022-03-25Added to the CISA KEV catalog751 days after publication
- 2025-02-07CISA SSVC decision recorded1801 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2020-9054: Zyxel NAS Firmware 5.21- Remote Code Execution
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| zyxel atp100_firmware | from 4.35no fix listed | not listed |
| zyxel atp200_firmware | from 4.35no fix listed | not listed |
| zyxel atp500_firmware | from 4.35no fix listed | not listed |
| zyxel atp800_firmware | from 4.35no fix listed | not listed |
| zyxel nas326_firmware | ||
| zyxel nas520_firmware | ||
| zyxel nas540_firmware | ||
| zyxel nas542_firmware | ||
| zyxel usg1100_firmware | from 4.35no fix listed | not listed |
| zyxel usg110_firmware | from 4.35no fix listed | not listed |
| zyxel usg1900_firmware | from 4.35no fix listed | not listed |
| zyxel usg20-vpn_firmware | from 4.35no fix listed | not listed |
| zyxel usg20w-vpn_firmware | from 4.35no fix listed | not listed |
| zyxel usg210_firmware | from 4.35no fix listed | not listed |
| zyxel usg2200_firmware | from 4.35no fix listed | not listed |
| zyxel usg310_firmware | from 4.35no fix listed | not listed |
| zyxel usg40_firmware | from 4.35no fix listed | not listed |
| zyxel usg40w_firmware | from 4.35no fix listed | not listed |
| zyxel usg60_firmware | from 4.35no fix listed | not listed |
| zyxel usg60w_firmware | from 4.35no fix listed | not listed |
References
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/
- 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://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-9054
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-9054'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-9054'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-9054'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-9054'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2020-9054'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).