CVE-2020-9054
ZyXEL NAS products running firmware version 5.21 and earlier are vulnerable to pre-authentication command injection in weblogin.cgi
CVE-2020-9054 is an OS command injection in ZyXEL NAS326 (CVSS 9.8, Critical).
Exploited in the wild. In CISA KEV since 2022‑03‑25. A vendor fix is available.
Public exploit: 1 sourceFixVendor fixNo build named by the sources
e.g. ZyXEL NAS RCE
What to do
The vendor has published a fix. Version details are below where the sources state them.
- ZyXEL NAS326Affected: ≥ V5.21(AAZF.7)C0, ≤ V5.21(AAZF.7)C0Upgrade to: after V5.21(AAZF.7)C0Stated by: CVE record
- ZyXEL NAS520Affected: ≥ V5.21(AASZ.3)C0, ≤ V5.21(AASZ.3)C0Upgrade to: after V5.21(AASZ.3)C0Stated by: CVE record
- ZyXEL NAS540Affected: ≥ V5.21(AATB.4)C0, ≤ V5.21(AATB.4)C0Upgrade to: after V5.21(AATB.4)C0Stated by: CVE record
- ZyXEL NAS542Affected: ≥ V5.21(ABAG.4)C0, ≤ V5.21(ABAG.4)C0Upgrade to: after V5.21(ABAG.4)C0Stated by: CVE record
- ZyXEL NSA210Affected: allUpgrade to: not statedStated by: CVE record
Versions as the sources state them. 57 more products have version data. Full version matrix after sign-in
Coverage timeline
1 publisherAdded to CISA KEV catalog
Sourced from public security reporting — each date is when it was published, not when it happened.
What it is
From the CVE record
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
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Listed as exploited in the wild since 2022-03-25.
US federal agencies must remediate by 2022-04-15.
Apply updates per vendor instructions.
- Public exploits
1 source with a proof of concept or module.
Exploit links, PoCs and Metasploit modules after sign-in- EPSS
100% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
The patch came 116 days before any public exploit.
- Patch availableworkaround available, record updated
- Patch availableworkaround available, record updated
- Public exploit / PoCsource: othernuclei check added
- Patch availableworkaround available, record updated
- Added to CISA KEV
- Publishedweakness classified, att&ck mapped
Affected products
And 59 more affected products. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored 9.8 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability HighTotal denial of service — the component is completely unavailable
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- cwe.mitre.org/data/definitions/78.html
- zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml
- kb.cert.org/vuls/id/498544/
And 6 more references. See all after sign-in
Questions about CVE-2020-9054
- Is CVE-2020-9054 being exploited?
- Yes. CVE-2020-9054 is in CISA's Known Exploited Vulnerabilities catalog since 2022-03-25, which means attackers are using it in the wild.
- Which versions are affected by CVE-2020-9054?
- NAS326: ≥ V5.21(AAZF.7)C0, ≤ V5.21(AAZF.7)C0. NAS520: ≥ V5.21(AASZ.3)C0, ≤ V5.21(AASZ.3)C0. NAS540: ≥ V5.21(AATB.4)C0, ≤ V5.21(AATB.4)C0. 59 more products are listed in the record.
- How do I fix or mitigate CVE-2020-9054?
- The vendor has published a fix. The advisory is on zyxel.com.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next exploited one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for NAS326, not every advisory. This one: actively exploited.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI