Cyber Resilience

CVE-2020-9054

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

CISA KEVActive ExploitationEUVD ExploitedPublic PoCRCECommand Injection
Published
04 March 2020
Modified
10 November 2025
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

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 Command and Scripting Interpreter (T1059); 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

T1059 Command and Scripting Interpreter Execution
Adversaries may abuse command and script interpreters to execute commands, scripts, or binaries.
T1059.003 Windows Command Shell Execution
Adversaries may abuse the Windows command shell for execution.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
T1059.001 PowerShell Execution
Adversaries may abuse PowerShell commands and scripts for execution.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
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-2024-40890Same vendor: Zyxelboth on KEV
CVE-2024-40891Same vendor: Zyxelboth on KEV
CVE-2017-6884Same vendor: Zyxelboth on KEV
CVE-2023-27991Same product: Zyxel Atp100
CVE-2020-29583Same product: Zyxel Atp100both on KEV
CVE-2017-18368Same vendor: Zyxelboth on KEV
CVE-2023-27988Same product: Zyxel Nas326

Affected Assets

zyxel
nas326 firmware
≤ 5.21\(aazf.7\)c0
zyxel
nas520 firmware
≤ 5.21\(aasz.3\)c0
zyxel
nas540 firmware
≤ 5.21\(aatb.4\)c0
zyxel
nas542 firmware
≤ 5.21\(abag.4\)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
  • V15.2.5

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
prevents

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
prevents

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.

finds

Security testing and code review target insecure use of operating-system command interfaces, catching command-injection flaws introduced during development.

References