CVE-2020-9054
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedMultiple 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
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencePre-authentication command injection vulnerability in ZyXEL NAS devices (NAS326, NAS520, NAS540, NAS542) running firmware before V5.21. The weblogin.cgi CGI program fails to sanitize the username parameter, allowing remote unauthenticated attackers to inject commands. Although the web server doesn't run as root, attackers leverage a setuid utility to achieve root-level code execution via specially-crafted HTTP POST/GET requests.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 5.21\(aazf.7\)c0< 5.21\(aasz.3\)c0< 5.21\(aatb.4\)c0< 5.21\(abag.4\)c0>= 4.35, < 4.35\(abps.3\)c0>= 4.35, < 4.35\(abfw.3\)c0>= 4.35, < 4.35\(abfu.3\)c0>= 4.35, < 4.35\(abiq.3\)c0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify the ZyXEL device modelAccess the device web interface or check the device label/menu to determine the exact model number (NAS326, NAS520, NAS540, NAS542, ATP100, ATP200, ATP500, or ATP800)Affected if The device model is one of NAS326, NAS520, NAS540, NAS542, ATP100, ATP200, ATP500, or ATP800
-
Determine the installed firmware versionLog into the device web interface and navigate to the System > Firmware or Administration section to view the current firmware version, or use the device CLI if availableAffected if The firmware version is lower than 5.21(aazf.7)c0 for NAS326, 5.21(aasz.3)c0 for NAS520, 5.21(aatb.4)c0 for NAS540, 5.21(abag.4)c0 for NAS542, or lower than 4.35(abps.3)c0/4.35(abfw.3)c0/4.35(abfu.3)c0/4.35(abiq.3)c0 for ATP models respectively
-
Verify the web interface is enabledCheck the device settings under Network Services or Remote Access to confirm the HTTP/HTTPS web management interface is turned on and accessibleAffected if The web interface (weblogin.cgi) is enabled and reachable from the network being tested
-
Confirm the device is exposed to networkAttempt to access the device login page at /weblogin.cgi via HTTP or HTTPS from the network segment in questionAffected if The device web login page is accessible over the network without authentication
The device is affected if it is a NAS326, NAS520, NAS540, NAS542, ATP100, ATP200, ATP500, or ATP800 running a firmware version below the specified thresholds AND the web interface is network-accessible.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.355.21
Apply available firmware updates from ZyXEL for supported models (NAS326 V5.21(AAZF.7)C0 or later, NAS520 V5.21(AASZ.3)C0 or later, NAS540 V5.21(AATB.4)C0 or later, NAS542 V5.21(ABAG.4)C0 or later). For end-of-support models (NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325, NSA325v2), isolate from network or decommission.
NAS326: V5.21(AAZF.7)C0 or later | NAS520: V5.21(AASZ.3)C0 or later | NAS540: V5.21(AATB.4)C0 or later | NAS542: V5.21(ABAG.4)C0 or later | ATP100/200/500/800: V4.35(ABPS.3/ABFW.3/ABFU.3/ABIQ.3)C0 or later
- 1. Identify the exact model of your ZyXEL NAS device (e.g., NAS326, NAS520, NAS540, NAS542, ATP100, ATP200, ATP500, or ATP800)
- 2. Determine the current firmware version by accessing the device's web management interface and checking the System Status or System Info section
- 3. Download the appropriate firmware update from the official ZyXEL support website (www.zyxel.com/support/download.shtml) for your specific model
- 4. In the web management interface, navigate to Administration > Firmware/OSS > Firmware Upgrade
- 5. Upload the downloaded firmware file and initiate the upgrade process
- 6. Wait for the firmware upgrade to complete - do not power off the device during this process
- 7. After the device reboots, verify the new firmware version matches or exceeds the fixed version for your model
- 8. Confirm the upgrade was successful by logging back into the web interface
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,560.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2020-9054 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2020-9054 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data