Home / ZyXEL / NAS326 / CVE-2020-9054
CVE-2020-9054: is it exploited, and which versions of ZyXEL NAS326 are affected and fixed?
CVE-2020-9054 is an OS command injection vulnerability in ZyXEL NAS326, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on March 25, 2022, with a federal due date of April 15, 2022. Affected: NAS326 from V5.21(AAZF.7)C0 through V5.21(AAZF.7)C0, NAS520 from V5.21(AASZ.3)C0 through V5.21(AASZ.3)C0, NAS540 from V5.21(AATB.4)C0 through V5.21(AATB.4)C0 and 10 more (CVE record by certcc). Fixed in 5.21\(aazf.10\)c0, 5.21\(aasz.3\)c0, 5.21\(aatb.7\)c0, 5.21\(abag.7\)c0 and 2 more (NVD). Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:16 UTC and NVD November 19, 2026, 08:12 UTC.
What is CVE-2020-9054?
ZyXEL NAS products running firmware version 5.21 and earlier are vulnerable to pre-authentication command injection in weblogin.cgi
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
From the CVE record by certcc, last updated October 7, 2026, 17:32 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ZyXEL | NAS326 | from V5.21(AAZF.7)C0 through V5.21(AAZF.7)C0 | |
| ZyXEL | NAS520 | from V5.21(AASZ.3)C0 through V5.21(AASZ.3)C0 | |
| ZyXEL | NAS540 | from V5.21(AATB.4)C0 through V5.21(AATB.4)C0 | |
| ZyXEL | NAS542 | from V5.21(ABAG.4)C0 through V5.21(ABAG.4)C0 | |
| ZyXEL | NSA210 | all | |
| ZyXEL | NSA220 | all | |
| ZyXEL | NSA220+ | all | |
| ZyXEL | NSA221 | all | |
| ZyXEL | NSA310 | from V4.75(AALH.2)C0 through V4.75(AALH.2)C0 | |
| ZyXEL | NSA320 | all | |
| ZyXEL | NSA320S | from V4.75(AANV.2)C0 through V4.75(AANV.2)C0 | |
| ZyXEL | NSA325 | from V4.81(AAAJ.1)C0 through V4.81(AAAJ.1)C0 | |
| ZyXEL | NSA325v2 | from V4.81(AALS.1)C0 through V4.81(AALS.1)C0 |
As the CVE record by certcc states it, last updated October 7, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| zyxel | nas326 firmware | before 5.21\(aazf.10\)c0 | operating system |
| zyxel | nas520 firmware | before 5.21\(aasz.3\)c0 | operating system |
| zyxel | nas540 firmware | before 5.21\(aatb.7\)c0 | operating system |
| zyxel | nas542 firmware | before 5.21\(abag.7\)c0 | operating system |
| zyxel | atp100 firmware | from 4.35 before 4.35\(abps.3\)c0 | operating system |
| zyxel | atp200 firmware | from 4.35 before 4.35\(abfw.3\)c0 | operating system |
| zyxel | atp500 firmware | from 4.35 before 4.35\(abfu.3\)c0 | operating system |
| zyxel | atp800 firmware | from 4.35 before 4.35\(abiq.3\)c0 | operating system |
| zyxel | usg20-vpn firmware | from 4.35 before 4.35\(abaq.3\)c0 | operating system |
| zyxel | usg20w-vpn firmware | from 4.35 before 4.35\(abar.3\)c0 | operating system |
| zyxel | usg40 firmware | from 4.35 before 4.35\(aala.3\)c0 | operating system |
| zyxel | usg40w firmware | from 4.35 before 4.35\(aalb.3\)c0 | operating system |
| zyxel | usg60 firmware | from 4.35 before 4.35\(aaky.3\)c0 | operating system |
| zyxel | usg60w firmware | from 4.35 before 4.35\(aakz.3\)c0 | operating system |
| zyxel | usg110 firmware | from 4.35 before 4.35\(aaph.3\)c0 | operating system |
| zyxel | usg210 firmware | from 4.35 before 4.35\(aapi.3\)c0 | operating system |
| zyxel | usg310 firmware | from 4.35 before 4.35\(aapj.3\)c0 | operating system |
| zyxel | usg1100 firmware | from 4.35 before 4.35\(aapk.3\)c0 | operating system |
| zyxel | usg1900 firmware | from 4.35 before 4.35\(aapl.3\)c0 | operating system |
| zyxel | usg2200 firmware | from 4.35 before 4.35\(abae.3\)c0 | operating system |
| zyxel | vpn50 firmware | from 4.35 before 4.35\(abhl.3\)c0 | operating system |
| zyxel | vpn100 firmware | from 4.35 before 4.35\(abfv.3\)c0 | operating system |
| zyxel | vpn300 firmware | from 4.35 before 4.35\(abfc.3\)c0 | operating system |
| zyxel | vpn1000 firmware | from 4.35 before 4.35\(abip.3\)c0 | operating system |
| zyxel | zywall110 firmware | from 4.35 before 4.35\(aaaa.3\)c0 | operating system |
NVD analysis (status Analyzed), last modified October 8, 2026, 13:38 UTC.
How severe is CVE-2020-9054?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 10.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2020-9054 exploited in the wild?
- CISA KEV
- Listed as Zyxel Multiple NAS Devices OS Command Injection Vulnerability, added March 25, 2022; federal agencies must act by April 15, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, February 7, 2025)
- EPSS
- 100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
How do I fix it? (from the CVE record)
ZyXEL has made firmware updates available for NAS326, NAS520, NAS540, NAS542, ATP100, ATP200, ATP500, ATP800, USG20-VPN, USG20W-VPN, USG40, USG40W, USG60, USG60W, USG110, USG210, USG310, USG1100, USG1900, USG2200, VPN50, VPN100, VPN300, VPN1000, ZyWALL110, ZyWALL310, and ZyWALL1100 devices.
Is there a workaround? (from the CVE record)
Block access to the ZyXEL device web interface: This issue can be mitigated by blocking (for example with a firewall) access to the web interface (80/tcp and 443/tcp) of any vulnerable ZyXEL device. Any machine that can access the ZyXEL web interface should not also be able to access the internet. Restrict access to vulnerable ZyXEL devices: Direct exploitation of this vulnerability can be mitigated by restricting access to vulnerable devices. In particular, do not expose such devices directly to the internet. Note however, that it is still possible for attackers to exploit devices that are not directly connected to the internet. For example, by way of viewing a web page.
Where are the vendor advisories and references?
- https://cwe.mitre.org/data/definitions/78.html x_refsource_MISC
- https://www.zyxel.com/support/remote-code-execution-vulnerability-of-NAS-products.shtml x_refsource_CONFIRM
- VU#498544 third-party-advisory, x_refsource_CERT-VN
- https://kb.cert.org/artifacts/cve-2020-9054.html x_refsource_MISC
- https://krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/ x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-9054 government-resource
Who found and reported it?
- Thanks to Alex Holden of Hold Security for finding and reporting this vulnerability. (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 18, 2020
- Published
- March 4, 2020, 19:30 UTC
- CVE record updated
- October 7, 2026, 17:32 UTC by certcc
- NVD
- Analyzed, last modified October 8, 2026, 13:38 UTC
- Last checked
- CVE list November 19, 2026, 07:16 UTC; NVD November 19, 2026, 08:12 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
Questions about CVE-2020-9054
Is CVE-2020-9054 exploited in the wild?
Yes. CISA added CVE-2020-9054 to its Known Exploited Vulnerabilities catalog on March 25, 2022 and set federal agencies a due date of April 15, 2022. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ZyXEL NAS326 are affected by CVE-2020-9054?
NAS326 from V5.21(AAZF.7)C0 through V5.21(AAZF.7)C0, NAS520 from V5.21(AASZ.3)C0 through V5.21(AASZ.3)C0, NAS540 from V5.21(AATB.4)C0 through V5.21(AATB.4)C0, NAS542 from V5.21(ABAG.4)C0 through V5.21(ABAG.4)C0, NSA210 all, NSA220 all and 7 more, per the CVE record by certcc. The tables above give every range the sources list.
Which version fixes CVE-2020-9054?
5.21\(aazf.10\)c0, 5.21\(aasz.3\)c0, 5.21\(aatb.7\)c0, 5.21\(abag.7\)c0, 4.35\(abps.3\)c0 and 4.35\(abfw.3\)c0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2020-9054?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2020-9054?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.