draft preview · not published · notes marked "Before launch" will not appear on the live site

Home / Known exploited

CVE-2020-9054: Zyxel Multiple NAS Devices OS Command Injection Vulnerability

Exploited in attacksPublic exploit code

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.

SourceEntryPublished
Nuclei templateZyxel NAS Firmware 5.21- Remote Code Execution

Affected products

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

  1. Find every copy. List each place Zyxel Multiple Network-Attached Storage (NAS) Devices runs, including test systems and anything set up outside IT.
  2. Compare versions. Match what you find against the affected versions in the vendor advisory.
  3. Check reachability. An affected system that faces the internet is urgent; one reachable only from inside still matters once an attacker has a foothold.
  4. 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

CVEWhat it affectsStatusEPSSPublished
CVE-2026-7273Zyxel GS1900 Series SwitchesNo public exploit found1.5%16 June 2026
CVE-2024-40891Zyxel DSL CPE DevicesNo public exploit found22.7%4 February 2025
CVE-2024-40890Zyxel DSL CPE DevicesNo public exploit found20.7%4 February 2025
CVE-2024-11667Zyxel Multiple FirewallsRansomware3.0%27 November 2024
CVE-2017-6884Zyxel EMG2926 RoutersRansomware Public exploit33.0%6 April 2017
CVE-2017-18368Zyxel P660HN-T1A RoutersPublic exploit94.5%2 May 2019

Sources

Machine-readable: /api/cve/CVE-2020-9054.json