The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-9054

CVE-2020-9054: Zyxel NAS326 Firmware RCE Vulnerability

CVE-2020-9054 is a pre-authentication command injection vulnerability in Zyxel NAS326 firmware that enables remote attackers to execute code with root privileges. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2020-9054 Overview

CVE-2020-9054 is a critical pre-authentication command injection vulnerability affecting multiple ZyXEL network-attached storage (NAS) devices running firmware version 5.21. This vulnerability allows a remote, unauthenticated attacker to execute arbitrary code on vulnerable devices by exploiting improper input sanitization in the weblogin.cgi CGI executable.

The vulnerability is particularly dangerous because ZyXEL devices include a setuid utility that can be leveraged to escalate any command execution to root privileges. This means successful exploitation leads to complete device compromise with the highest level of access.

Critical Impact

Remote unauthenticated attackers can achieve root-level code execution on affected ZyXEL NAS devices through a simple HTTP request, potentially leading to data theft, ransomware deployment, or network pivoting.

Affected Products

  • ZyXEL NAS326 before firmware V5.21(AAZF.7)C0
  • ZyXEL NAS520 before firmware V5.21(AASZ.3)C0
  • ZyXEL NAS540 before firmware V5.21(AATB.4)C0
  • ZyXEL NAS542 before firmware V5.21(ABAG.4)C0
  • ZyXEL ATP Series (ATP100, ATP200, ATP500, ATP800)
  • ZyXEL USG Series (USG20-VPN, USG20W-VPN, USG40, USG40W, USG60, USG60W, USG110, USG210, USG310, USG1100, USG1900, USG2200)
  • ZyXEL VPN Series (VPN50, VPN100, VPN300, VPN1000)
  • ZyXEL ZyWALL Series (ZyWALL110, ZyWALL310, ZyWALL1100)
  • End-of-Support Models: NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325, NSA325v2

Discovery Timeline

  • March 4, 2020 - CVE-2020-9054 published to NVD
  • November 10, 2025 - Last updated in NVD database

Technical Details for CVE-2020-9054

Vulnerability Analysis

This vulnerability exists in the authentication mechanism of ZyXEL NAS devices. The weblogin.cgi CGI executable, which handles user authentication, fails to properly sanitize the username parameter before passing it to system shell commands. When the username parameter contains certain special characters (such as semicolons or backticks), these characters are interpreted as shell metacharacters, allowing arbitrary commands to be injected and executed.

Although the web server process does not run with root privileges initially, the attack chain becomes significantly more dangerous due to the presence of a setuid utility on the device. Attackers can leverage this utility to escalate their privileges from the web server context to full root access, achieving complete control over the device.

Root Cause

The root cause of CVE-2020-9054 is insufficient input validation in the weblogin.cgi authentication handler. The vulnerability falls under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The application passes user-controlled input (the username parameter) directly to shell commands without proper sanitization or escaping of shell metacharacters.

Attack Vector

The attack can be executed remotely via specially-crafted HTTP POST or GET requests to the weblogin.cgi endpoint. There are multiple attack scenarios:

  1. Direct Attack: If the ZyXEL device is directly exposed to the internet, attackers can send malicious requests directly to the device's web management interface.

  2. Cross-Site Attack: More concerning is that the vulnerability can be exploited even when the device is not directly internet-accessible. If a user on the internal network visits a malicious website, that website can trigger crafted requests to any ZyXEL device reachable from the user's system, effectively enabling drive-by attacks against internal NAS infrastructure.

The vulnerability is exploited by injecting shell commands into the username parameter. When the weblogin.cgi script processes the malicious input, the injected commands are executed in the context of the web server. The attacker can then chain this with the setuid utility to achieve root-level command execution.

Detection Methods for CVE-2020-9054

Indicators of Compromise

  • Unusual HTTP POST or GET requests to /weblogin.cgi containing shell metacharacters (;, |, $(), backticks) in the username parameter
  • Unexpected processes spawned by the web server process on ZyXEL devices
  • Suspicious outbound network connections from NAS devices to unknown external IP addresses
  • Modified system files or new unauthorized user accounts on ZyXEL devices
  • Evidence of the setuid utility being invoked in abnormal contexts

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing shell metacharacters in authentication parameters
  • Monitor HTTP traffic to ZyXEL devices for patterns matching command injection payloads
  • Deploy network intrusion detection signatures for CVE-2020-9054 exploitation attempts
  • Review web server logs on ZyXEL devices for suspicious authentication attempts with malformed usernames

Monitoring Recommendations

  • Enable comprehensive logging on ZyXEL device web interfaces and forward logs to a SIEM solution
  • Configure network monitoring to alert on unusual traffic patterns to/from NAS devices
  • Implement behavioral analysis to detect anomalous process execution on network storage appliances
  • Monitor for connections to known command-and-control infrastructure associated with IoT botnets

How to Mitigate CVE-2020-9054

Immediate Actions Required

  • Update affected ZyXEL NAS devices to the patched firmware versions immediately (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)
  • Isolate any unpatched ZyXEL devices from internet exposure by placing them behind a firewall without port forwarding
  • For end-of-support models (NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325, NSA325v2), plan for immediate replacement as no patches are available
  • Disable remote web management interfaces if not required for operations

Patch Information

ZyXEL has released firmware updates for supported NAS models. The patched firmware versions that address CVE-2020-9054 are:

  • 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

Firmware updates can be obtained from the ZyXEL Security Advisory. For end-of-support devices, no patches will be released and replacement is strongly recommended.

Workarounds

  • Block external access to port 80/443 (web management interface) on ZyXEL devices using network firewall rules
  • Implement network segmentation to isolate NAS devices from untrusted network segments
  • Use a reverse proxy with input validation capabilities to filter malicious requests before they reach the device
  • Disable the web interface entirely if management can be performed through alternative methods
bash
# Example firewall rule to block external access to ZyXEL NAS web interface
# (Adjust interface and IP ranges according to your network configuration)
iptables -A INPUT -i eth0 -p tcp --dport 80 -s ! 192.168.1.0/24 -j DROP
iptables -A INPUT -i eth0 -p tcp --dport 443 -s ! 192.168.1.0/24 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechZyxel

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-78
  • Technical References
  • MITRE CWE Definition

  • CERT CVE-2020-9054 Information

  • CERT Vulnerability ID 498544

  • Krebs on Security 0-Day Fix

  • CISA Known Exploits Catalog
  • Vendor Resources
  • Zyxel Security Patch Notice
  • Related CVEs
  • CVE-2025-13942: Zyxel WX5610-B0 Firmware RCE Vulnerability

  • CVE-2026-1459: Zyxel VMG8623-T50B Firmware RCE Flaw

  • CVE-2025-11730: Zyxel Firewall DDNS Command Injection

  • CVE-2025-7673: Zyxel EMG3525-T50B Firmware RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English