Security Resilience

CVE-2020-9054

RCE in Zyxel Nas326 Firmware ≤ 5.21\(aazf.10\)c0

CISA KEVActive ExploitationEUVD ExploitedPublic PoCRCECommand Injection
Published
04 March 2020
Modified
08 October 2026
KEV Added
25 March 2022
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.99 100.0th percentile
Risk Priority 97 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2020-9054 is a critical-severity OS Command Injection (CWE-78) vulnerability in Zyxel Nas326 Firmware. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique NTDS (T1003.003); ranked in the top 0.0% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Multiple ZyXEL network-attached storage devices running firmware version 5.21 are affected by a pre-authentication command injection vulnerability tracked as CVE-2020-9054. The flaw resides in the weblogin.cgi component responsible for authentication, which fails to sanitize the username parameter. This permits injection of shell metacharacters that are executed with web-server privileges; because the devices include a setuid utility, an attacker can escalate to root. Affected models include NAS326, NAS520, NAS540, and NAS542 prior to the listed firmware revisions, along with several end-of-support NSA-series products. The vulnerability carries a CVSS 3.1 base score of 9.8.

A remote, unauthenticated attacker can exploit the issue by sending a crafted HTTP POST or GET request containing malicious username values. Successful exploitation yields arbitrary command execution with root privileges on the device. The attack can be mounted directly against an exposed NAS or indirectly when a user’s browser is induced to issue the malicious request to any reachable vulnerable device.

ZyXEL has released updated firmware (V5.21(AAZF.7)C0 and later for NAS326, V5.21(AASZ.3)C0 for NAS520, V5.21(AATB.4)C0 for NAS540, and V5.21(ABAG.4)C0 for NAS542). The vendor advisory and CERT coordination artifacts recommend applying these updates immediately and note that no workarounds exist for the affected firmware versions.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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

CWE(s)
KEV Date Added
25 March 2022

Related Threats

MITRE ATT&CK Enterprise Techniques

T1003.003 NTDS Credential Access
Adversaries may attempt to access or create a copy of the Active Directory domain database in order to steal credential information, as well as obtain other information about domain members such as devices, users, and access rights.
T1007 System Service Discovery Discovery
Adversaries may try to gather information about registered local system services.
T1010 Application Window Discovery Discovery
Adversaries may attempt to get a listing of open application windows.
T1021.004 SSH Lateral Movement
Adversaries may use [Valid Accounts](https://attack.
T1021.008 Direct Cloud VM Connections Lateral Movement
Adversaries may leverage [Valid Accounts](https://attack.
T1027.001 Binary Padding Stealth
Adversaries may use binary padding to add junk data and change the on-disk representation of malware.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2022-30525Same product: Zyxel Atp100both on KEV
CVE-2023-28771Same product: Zyxel Atp100both on KEV
CVE-2023-27992Same product: Zyxel Nas326both on KEV
CVE-2017-6884Same vendor: Zyxelboth on KEV
CVE-2024-40891Same vendor: Zyxelboth on KEV
CVE-2024-40890Same vendor: Zyxelboth on KEV
CVE-2023-27991Same product: Zyxel Atp100
CVE-2017-18368Same vendor: Zyxelboth on KEV
CVE-2023-27988Same product: Zyxel Nas326
CVE-2023-6398Same product: Zyxel Atp100

Affected Assets

zyxel
nas326 firmware
≤ 5.21\(aazf.10\)c0
zyxel
nas520 firmware
≤ 5.21\(aasz.3\)c0
zyxel
nas540 firmware
≤ 5.21\(aatb.7\)c0
zyxel
nas542 firmware
≤ 5.21\(abag.7\)c0
zyxel
atp100 firmware
4.35 — 4.35\(abps.3\)c0
zyxel
atp200 firmware
4.35 — 4.35\(abfw.3\)c0
zyxel
atp500 firmware
4.35 — 4.35\(abfu.3\)c0
zyxel
atp800 firmware
4.35 — 4.35\(abiq.3\)c0
zyxel
usg20-vpn firmware
4.35 — 4.35\(abaq.3\)c0
zyxel
usg20w-vpn firmware
4.35 — 4.35\(abar.3\)c0
+17 more product configuration(s) — see NVD for full list

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.2.5
  • V1.2.8

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-78

Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.

addresses: CWE-78

Validates inputs to block special elements that would alter OS command execution.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
blocks

PR.PS-06's SDLC practices directly require secure coding and input handling that blocks command-injection defects, yet the single broad outcome leaves many specific neutralization vectors and verification gaps unaddressed.

PR.PS-02 partial match
blocks

Routine patching/maintenance can remediate known command-injection CVEs in dependencies (partial forward) but does nothing to stop developers from introducing improper neutralization in custom code (none reverse).

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

removes
removes
removes
removes
removes

References