CVE-2020-9054 is a pre-authentication OS command injection (CWE-78) in the weblogin.cgi login program of Zyxel NAS devices and ZLD V4.35 firewalls: a crafted username runs commands, and a setuid helper lifts them to root. NVD scores it 9.8 and CISA KEV lists it. Install Zyxel's fixed firmware; end-of-support NSA models get no fix.
Vulnerability summary
CVSS base score
9.8
Critical severity
EPSS score (FIRST)
100.0%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2020-9054 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Zyxel NAS326, NAS520, NAS540, NAS542 | cpe:2.3:o:zyxel:nas326_firmware:*:*:*:*:*:*:*:* | firmware 5.21 and earlier; fixed in NAS326 V5.21(AAZF.10)C0, NAS520 V5.21(AASZ.3)C0 (end-of-life, file from Zyxel support), NAS540 V5.21(AATB.7)C0, NAS542 V5.21(ABAG.7)C0 (Zyxel, updated 2022-01-28) |
| Zyxel ATP, USG, VPN and ZyWALL firewalls (23 models) | cpe:2.3:o:zyxel:usg40_firmware:*:*:*:*:*:*:*:* | ZLD V4.35 Patch 0 through Patch 2 (earlier ZLD not affected); fixed in V4.35(xxxx.3)C0 per model, for example USG40 V4.35(AALA.3)C0 |
| Zyxel NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325, NSA325v2 | — | end-of-support (2016 or earlier); no firmware update, Zyxel workaround: keep off the internet |
What does this mean for affected devices?
CERT/CC, the CNA for this record, describes the bug in VU#498544: Zyxel devices authenticate through the weblogin.cgi CGI program, which "fails to properly sanitize the username parameter". Injected commands run with the web server's privileges, and "many ZyXEL devices include a setuid utility that can be leveraged to run any command with root privileges". CERT/CC also warns that a device does not need to face the internet: "simply visiting a website can result in the compromise of any ZyXEL device that is reachable from the client system." NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), its Primary CVSS v2 score is 10.0, and CISA ADP gives 9.8; the weakness is CWE-78 (NVD, CVE record).
Which NAS and firewall firmware is affected?
Zyxel's advisory for the weblogin.cgi flaw lists NAS products on firmware 5.21 and earlier and ATP, USG, VPN and ZyWALL firewalls on ZLD V4.35 Patch 0 through Patch 2; earlier ZLD releases are not affected. Fixed builds: 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, plus a V4.35 "(xxxx.3)C0" build for each of 23 firewall models, such as USG40 V4.35(AALA.3)C0. The NAS520 is end-of-life, so its file comes from local Zyxel support. The NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325 and NSA325v2 reached end-of-support in 2016 or earlier and get no update; Zyxel's workaround is not to expose them to the internet and to place them behind a security router or firewall. In a 2022-01-28 update Zyxel raised the NAS326, NAS540 and NAS542 patch versions and warned that BotenaGo malware targets the flaw.
What should you do?
Install the fixed firmware. CERT/CC adds that the update process fetches firmware over FTP and checks only a checksum, so update from a trusted network, and suggests blocking access to the web interface (80/tcp and 443/tcp) (internet-exposed management interfaces). CISA added CVE-2020-9054 to the KEV catalog on 2022-03-25 with the required action "Apply updates per vendor instructions." (due 2022-04-15; known ransomware campaign use: Unknown); it is still listed as of 2026-11-24 in catalog version 2026.11.23 (CISA KEV). FIRST EPSS gives 0.99988, the 99.98th percentile, in the 2026-11-23 dataset (FIRST EPSS). The fix pattern is in how to fix command injection in embedded firmware. Later Zyxel NAS injections: CVE-2023-27992 and CVE-2024-29973.
Evidence
- NVD: weblogin.cgi username parameter not sanitised on Zyxel NAS firmware 5.21; setuid utility enables root; NVD Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD Primary CVSS v2 10.0; CISA ADP 9.8; CWE-78 (NVD, CERT/CC); CPEs NAS326 < 5.21(aazf.10)c0, NAS520 < 5.21(aasz.3)c0, NAS540 < 5.21(aatb.7)c0, NAS542 < 5.21(abag.7)c0, 23 firewall models 4.35 to < 4.35(xxxx.3)c0; status Analyzed; published 2020-03-04. — NVD
- CERT/CC VU#498544 (first published 2020-02-24): weblogin.cgi fails to sanitise username; setuid utility gives root; visiting a website can compromise a reachable device; firmware updates for NAS326/520/540/542 and 23 firewall models; NSA210-NSA325v2 unsupported; update process uses FTP and checksum only; block web interface 80/tcp and 443/tcp; credit Brian Krebs, exploit uncovered by Alex Holden of Hold Security. — CERT/CC
- Zyxel advisory (initial release 2020-02-24, updated 2022-01-28): weblogin.cgi RCE in NAS firmware 5.21 and earlier and UTM/ATP/VPN firewalls ZLD V4.35 Patch 0 through Patch 2; fixed NAS326 V5.21(AAZF.10)C0, NAS520 V5.21(AASZ.3)C0 (EOL, contact support), NAS540 V5.21(AATB.7)C0, NAS542 V5.21(ABAG.7)C0, firewall V4.35(xxxx.3)C0 builds; NSA210..NSA325v2 end-of-support 2016 or earlier, no updates, do not expose to internet; 2022-01-28 BotenaGo note. — Zyxel security advisory
- CVE record: state PUBLISHED, CNA CERT/CC, published 2020-03-04. — CVE.org
- KEV catalog version 2026.11.23: dateAdded 2022-03-25, required action 'Apply updates per vendor instructions.', due 2022-04-15, knownRansomwareCampaignUse Unknown, CWE-78; checked 2026-11-24. — CISA KEV
- EPSS 0.99988, percentile 0.99984, dataset 2026-11-23, read 2026-11-24. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which firmware fixes CVE-2020-9054 on Zyxel NAS?
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 is end-of-life, so its file comes from local Zyxel support (per Zyxel's advisory, updated 2022-01-28).
Are Zyxel firewalls affected by CVE-2020-9054?
Yes, ATP, USG, VPN and ZyWALL firewalls on ZLD V4.35 Patch 0 through Patch 2. Each of the 23 listed models has a fixed V4.35 build ending in .3)C0; firmware older than V4.35 Patch 0 is not affected (per Zyxel and NVD).
What about old NSA-series NAS units?
The NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325 and NSA325v2 are end-of-support and get no update. Zyxel's workaround is to keep them off the internet behind a security router or firewall; CERT/CC adds blocking the web interface ports (per Zyxel and CERT/CC).
Is CVE-2020-9054 exploited?
Yes. CISA added it to KEV on 2022-03-25, and it is listed as of 2026-11-24 in catalog version 2026.11.23. Zyxel's 2022 update names BotenaGo malware among the attackers. FIRST EPSS gives 0.99988 (99.98th percentile) in the 2026-11-23 dataset (per CISA KEV, Zyxel and FIRST EPSS).
Questions about this page?