LiveActive security incident?Get immediate response
CVE Record

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

CriticalCVSS 9.8Known exploitedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

CVE-2020-9054 lets an unauthenticated attacker take over vulnerable ZyXEL NAS devices before login. Because these systems often store files and backups, compromise can expose data and provide a foothold. Supported NAS326, NAS520, NAS540, and NAS542 models have firmware updates; many older NSA models are end-of-support. CISA KEV confirms known exploitation.

Executive priority

Treat this as urgent for any affected ZyXEL NAS because exploitation can occur before login and may lead to root-level compromise. Prioritize internet-facing devices first, then internal devices reachable from user browsing paths, then unsupported NSA-series replacement decisions.

Technical view

The weblogin.cgi authentication component fails to sanitize the username parameter, enabling pre-authentication command injection. The issue can execute commands as the web server user and may escalate to root through a setuid utility on affected devices. CERT describes direct network exploitation and browser-triggered request scenarios against reachable devices.

Likely exposure

Exposure is likely where affected ZyXEL NAS models run vulnerable firmware, especially if the management interface is internet-facing or reachable from user workstations. End-of-support NSA-series devices are higher operational risk because the source bundle does not identify firmware fixes for them.

Exploitation context

Active exploitation is supported by CISA KEV. Public sources describe this as a pre-authentication remote code execution flaw in NAS web login handling. The bundle does not provide safe evidence of current exploit volume, targeted sectors, or malware campaigns, so those details should not be assumed.

Researcher notes

Key constraints are pre-auth weblogin.cgi username command injection, CWE-78, CVSS 9.8, and probable root impact through setuid behavior. Avoid assuming unaffected ZyXEL product lines. The source bundle names fixed supported NAS firmware but does not provide a general workaround beyond vendor guidance and exposure reduction.

Mitigation direction

  • Apply ZyXEL firmware updates for NAS326, NAS520, NAS540, and NAS542 where applicable.
  • Retire, replace, or strongly isolate listed end-of-support NSA-series devices.
  • Remove NAS web interfaces from direct internet exposure.
  • Restrict management access to trusted networks or VPN paths.
  • Check current ZyXEL guidance before relying on compensating controls.

Validation and detection

  • Inventory ZyXEL NAS models and exact firmware versions.
  • Compare firmware against the fixed versions listed in the advisory.
  • Identify any internet-facing or broadly reachable NAS web interfaces.
  • Review access logs for unexpected unauthenticated login requests or command-execution indicators.
  • Confirm end-of-support devices are decommissioned or isolated from untrusted networks.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-78: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2020-9054 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
Yes
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2020-9054Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ZyXELNAS326V5.21(AAZF.7)C0Listed
ZyXELNAS520V5.21(AASZ.3)C0Listed
ZyXELNAS540V5.21(AATB.4)C0Listed
ZyXELNAS542V5.21(ABAG.4)C0Listed
ZyXELNSA210allListed
ZyXELNSA220allListed
ZyXELNSA220+allListed
ZyXELNSA221allListed
ZyXELNSA310V4.75(AALH.2)C0Listed
ZyXELNSA320allListed
ZyXELNSA320SV4.75(AANV.2)C0Listed
ZyXELNSA325V4.81(AAAJ.1)C0Listed
ZyXELNSA325v2V4.81(AALS.1)C0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.