CVE-2020-9054: Zyxel Multiple NAS Devices OS Command Injection Vulnerability
Yes. CVE-2020-9054 has been used in real attacks. CISA added it to its Known Exploited Vulnerabilities catalog on 25 March 2022. Public exploit code is available: a Nuclei detection template. EPSS puts the chance of further exploitation attempts in the next 30 days at 99.9%.
- Exploited in real attacks
- Yes. On CISA's exploited list since 25 March 2022
- Used in ransomware
- Not known
- Public exploit code
- A Nuclei detection template
- Chance of exploitation (EPSS)
- 99.9% in the next 30 days, higher than 99.9% of scored vulnerabilities. Scored 5 December 2026
- Severity (CVSS)
- 9.8 Critical (version 3.1)
- Affects
- Zyxel Multiple Network-Attached Storage (NAS) Devices
- Type of flaw
- OS command injection (CWE-78)
- Published
- 4 March 2020
- US federal patch deadline
- 15 April 2022
What it is
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.
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
Description from the CVE record.
Is CVE-2020-9054 being exploited?
Yes. CISA lists a vulnerability as known exploited only when it has reliable evidence of exploitation in real attacks, and it added CVE-2020-9054 on 25 March 2022. That was 2 years after the CVE was published, so attackers are still finding unpatched systems long after the fix.
Public exploit code
These are public references that anyone, including an attacker, can find. Their existence lowers the skill needed to use the flaw.
| Source | Entry | Published |
|---|---|---|
| Nuclei template | Zyxel NAS Firmware 5.21- Remote Code Execution |
Affected products
- ZyXEL NAS326: V5.21(AAZF.7)C0 through V5.21(AAZF.7)C0
- ZyXEL NAS520: V5.21(AASZ.3)C0 through V5.21(AASZ.3)C0
- ZyXEL NAS540: V5.21(AATB.4)C0 through V5.21(AATB.4)C0
- ZyXEL NAS542: V5.21(ABAG.4)C0 through V5.21(ABAG.4)C0
- ZyXEL NSA210
- ZyXEL NSA220
- ZyXEL NSA220+
- ZyXEL NSA221
- ZyXEL NSA310: V4.75(AALH.2)C0 through V4.75(AALH.2)C0
- ZyXEL NSA320
From the CVE record. Check the vendor advisory for the full list of fixed versions.
What to do
CISA's required action: Apply updates per vendor instructions.
Because this flaw has already been used in attacks, patching is only half the job. If an affected system was reachable while unpatched, check it for signs of compromise before trusting it again.
How to check whether you are exposed
- Find every copy. List each place Zyxel Multiple Network-Attached Storage (NAS) Devices runs, including test systems and anything set up outside IT.
- Compare versions. Match what you find against the affected versions in the vendor advisory.
- Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
- Assume it has been scanned. A public Nuclei template exists for this flaw, so finding exposed systems across the internet is automated.
HackDrill
Find out whether this is reachable in your systems.
A version number tells you a system is affected. A hacking drill tells you whether an attacker can actually get in through a flaw like this one. HackDrill's AI agents attack your product, infrastructure, network and cloud the way modern attackers do, and show you the real, exploitable gaps so you can fix them first.
Other tracked vulnerabilities in Zyxel products
| CVE | What it affects | Status | EPSS | Published |
|---|---|---|---|---|
| CVE-2026-7273 | Zyxel GS1900 Series Switches | No public exploit found | 1.5% | 16 June 2026 |
| CVE-2024-40891 | Zyxel DSL CPE Devices | No public exploit found | 22.7% | 4 February 2025 |
| CVE-2024-40890 | Zyxel DSL CPE Devices | No public exploit found | 20.7% | 4 February 2025 |
| CVE-2024-11667 | Zyxel Multiple Firewalls | Ransomware | 3.0% | 27 November 2024 |
| CVE-2017-6884 | Zyxel EMG2926 Routers | Ransomware Public exploit | 33.0% | 6 April 2017 |
| CVE-2017-18368 | Zyxel P660HN-T1A Routers | Public exploit | 94.5% | 2 May 2019 |
Sources
- CVE record for CVE-2020-9054
- NVD entry
- CISA Known Exploited Vulnerabilities catalog, version 2026.12.04
- FIRST EPSS, scores dated 5 December 2026
- cwe.mitre.org (x_refsource_MISC)
- www.zyxel.com (x_refsource_CONFIRM)
- kb.cert.org (third-party-advisory, x_refsource_CERT-VN)
- kb.cert.org (x_refsource_MISC)
- krebsonsecurity.com (x_refsource_MISC)
Machine-readable: /api/cve/CVE-2020-9054.json