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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2023-35138

CVE-2023-35138: Zyxel NAS326 Firmware RCE Vulnerability

CVE-2023-35138 is a command injection flaw in Zyxel NAS326 firmware that enables unauthenticated attackers to execute OS commands via crafted HTTP requests. This article covers technical details, affected versions, and mitigations.

Published: February 4, 2026

CVE-2023-35138 Overview

CVE-2023-35138 is a command injection vulnerability affecting Zyxel NAS326 and NAS542 network-attached storage devices. The flaw exists in the show_zysync_server_contents function and allows an unauthenticated attacker to execute arbitrary operating system commands by sending a specially crafted HTTP POST request to vulnerable devices.

This vulnerability is particularly dangerous because it requires no authentication, meaning any attacker with network access to the device can exploit it remotely. The vulnerability affects devices used for data storage in both home and small business environments, potentially exposing sensitive data to complete compromise.

Critical Impact

Unauthenticated remote attackers can execute arbitrary OS commands on vulnerable Zyxel NAS devices, leading to complete device compromise, data theft, and potential use as a pivot point for further network attacks.

Affected Products

  • Zyxel NAS326 firmware version V5.21(AAZF.14)C0 and earlier
  • Zyxel NAS542 firmware version V5.21(ABAG.11)C0 and earlier
  • Zyxel NAS326 hardware
  • Zyxel NAS542 hardware

Discovery Timeline

  • 2023-11-30 - CVE-2023-35138 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-35138

Vulnerability Analysis

This command injection vulnerability (CWE-78) resides in the show_zysync_server_contents function of affected Zyxel NAS firmware. The function fails to properly sanitize user-supplied input before incorporating it into system commands executed by the underlying operating system.

The vulnerability is exploitable over the network without requiring any authentication credentials. An attacker can craft a malicious HTTP POST request containing shell metacharacters or command separators that, when processed by the vulnerable function, result in arbitrary command execution with the privileges of the web server process—typically root on these embedded devices.

The impact of successful exploitation is severe: attackers gain the ability to read, modify, or delete any data stored on the NAS device, install backdoors or malware, pivot to other systems on the network, or render the device completely inoperable.

Root Cause

The root cause of CVE-2023-35138 is improper input validation in the show_zysync_server_contents function. User-controllable input from HTTP POST parameters is passed directly to system shell commands without adequate sanitization or escaping. This allows attackers to inject arbitrary shell commands by including special characters such as semicolons (;), pipes (|), backticks, or command substitution syntax ($()) in their requests.

The lack of authentication requirements for accessing this vulnerable functionality compounds the severity, as attackers only need network connectivity to the device's web interface to launch an attack.

Attack Vector

The attack is conducted remotely via the network by sending a crafted HTTP POST request to the vulnerable endpoint on the Zyxel NAS web interface. The attacker does not need valid credentials or any form of authentication to exploit this vulnerability.

The vulnerability manifests when the show_zysync_server_contents function processes attacker-controlled input and passes it to an operating system command interpreter. By injecting shell metacharacters into POST parameters, an attacker can append arbitrary commands that will be executed on the target system.

For technical details on the vulnerability mechanism and exploitation, refer to the Zyxel Security Advisory.

Detection Methods for CVE-2023-35138

Indicators of Compromise

  • Unexpected outbound network connections from NAS devices to unknown IP addresses
  • Unusual processes running on the NAS device, particularly shell processes spawned by the web server
  • Modifications to system files or new files appearing in system directories
  • Web server access logs showing POST requests to endpoints associated with show_zysync_server_contents containing suspicious characters

Detection Strategies

  • Monitor HTTP POST requests to Zyxel NAS devices for shell metacharacters (;, |, &, backticks, $()) in request parameters
  • Deploy network intrusion detection rules to identify command injection patterns targeting Zyxel NAS endpoints
  • Implement web application firewall rules to block requests containing OS command injection payloads
  • Review web server logs for anomalous POST requests to NAS management interfaces

Monitoring Recommendations

  • Establish baseline network behavior for NAS devices and alert on deviations such as new outbound connections
  • Monitor for unexpected process creation on NAS devices, especially shell processes
  • Implement file integrity monitoring on critical NAS system directories
  • Configure alerts for authentication failures or access attempts from unusual source IP addresses

How to Mitigate CVE-2023-35138

Immediate Actions Required

  • Update affected Zyxel NAS326 and NAS542 devices to the latest firmware version immediately
  • If patching is not immediately possible, restrict network access to the NAS web interface using firewall rules
  • Isolate vulnerable NAS devices from untrusted networks and the internet
  • Review NAS access logs for signs of prior exploitation attempts

Patch Information

Zyxel has released firmware updates to address this vulnerability. Administrators should obtain the latest firmware from the official Zyxel support portal and apply it following the manufacturer's upgrade procedures. Details on the specific patched versions are available in the Zyxel Security Advisory for Authentication Bypass and Command Injection Vulnerabilities in NAS Products.

Workarounds

  • Disable remote management access to the NAS device if not required
  • Implement strict firewall rules to allow access only from trusted IP addresses
  • Place NAS devices on isolated network segments with limited connectivity
  • Consider using a VPN for remote access rather than exposing the NAS interface directly
bash
# Example firewall rule to restrict NAS web interface access (iptables)
# Replace 192.168.1.0/24 with your trusted network range and 192.168.1.100 with NAS IP
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -d 192.168.1.100 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -s 192.168.1.0/24 -d 192.168.1.100 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -d 192.168.1.100 -j DROP
iptables -A INPUT -p tcp --dport 443 -d 192.168.1.100 -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 Nas326

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability10.52%

  • 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
  • CWE References
  • CWE-78
  • Vendor Resources
  • Zyxel Security Advisory
  • Related CVEs
  • CVE-2023-27992: Zyxel NAS326 Firmware RCE Vulnerability
Default Legacy - Prefooter | 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