CVE-2023-27992 — Zyxel Multiple NAS Devices Command Injection Vulnerability

CVE-2023-27992

Zyxel NAS326/NAS540/NAS542 — Pre-Auth OS Command Injection via Crafted HTTP Request; 4-Day KEV Turnaround; Fixed June 2023

What is Zyxel NAS?

Zyxel NAS (Network-Attached Storage) devices are consumer and small business network storage appliances that provide centralized file storage, backup, and media streaming accessible over a local network and the internet. Zyxel NAS326, NAS540, and NAS542 are Linux-based appliances that run a web-based management interface for configuration and file management. Small businesses and home offices use these devices to store business documents, backups, media libraries, and personal files — often with the management interface exposed directly to the internet for remote access. NAS devices that are internet-accessible and running embedded Linux firmware represent an attractive target class: they have no endpoint detection, often run outdated firmware, and store files directly accessible to ransomware operators.

Overview

CVE-2023-27992 is a pre-authentication OS command injection vulnerability in Zyxel NAS326, NAS540, and NAS542 network-attached storage devices that allows an unauthenticated remote attacker to execute arbitrary OS commands by sending a specially crafted HTTP request. Zyxel published the advisory and patches simultaneously on June 19, 2023. CISA added it to the Known Exploited Vulnerabilities catalog just four days later on June 23 — one of the fastest KEV additions relative to advisory publication, indicating that active exploitation was already underway or imminent at the time of disclosure.

Affected Versions

Product Vulnerable Fixed
NAS326 V5.21(AAZF.13)C0 and earlier V5.21(AAZF.14)C0
NAS540 V5.21(AATB.10)C0 and earlier V5.21(AATB.11)C0
NAS542 V5.21(ABAG.10)C0 and earlier V5.21(ABAG.11)C0

Technical Details

CWE-78 (Improper Neutralization of Special Elements used in an OS Command — OS Command Injection). Zyxel NAS devices run a web-based management interface built on an embedded Linux OS. A command injection vulnerability in the web application's request handling allows an unauthenticated attacker to send an HTTP request containing specially crafted input that is passed unsanitized to a shell command executed on the underlying Linux OS.

No credentials are required — the vulnerable code path is reachable before authentication. Successful exploitation provides the attacker with OS command execution on the NAS device's Linux environment, typically as a privileged user. This allows:

  • Reading or exfiltrating all files stored on the NAS
  • Encrypting or deleting stored files (ransomware deployment)
  • Installing persistent backdoors or botnet malware on the device
  • Using the compromised NAS as a pivot point for attacking other systems on the local network

NAS devices running embedded Linux with persistent storage are particularly useful for attackers establishing long-term footholds — the device continues running between user logins and may not be monitored.

Discovery

Discovered and reported to Zyxel by security researchers. Zyxel coordinated the fix and published the advisory and firmware updates simultaneously on June 19, 2023.

Exploitation Context

The 4-day gap between Zyxel's advisory publication (June 19) and CISA's KEV addition (June 23) indicates that CISA had intelligence of active exploitation at or near the time of public disclosure. Zyxel NAS devices are a recurring target for ransomware and cryptomining botnet operators: Zyxel NAS vulnerabilities in 2020, 2022, and 2023 have all been rapidly weaponized after public disclosure, with attackers exploiting internet-accessible appliances before owners apply firmware updates.

The firmware update process for NAS devices requires manual action by the device owner — consumer and small business NAS devices typically lack automatic update mechanisms. This creates a persistent exploitation window, particularly for devices owned by non-technical users who may not monitor security advisories.

Remediation

  1. Update NAS326 to firmware V5.21(AAZF.14)C0 or later, NAS540 to V5.21(AATB.11)C0 or later, NAS542 to V5.21(ABAG.11)C0 or later via the device's firmware update mechanism.
  2. If the management interface is internet-accessible, immediately restrict access via router/firewall rules — NAS management interfaces should not be directly reachable from the internet.
  3. Enable remote access via VPN rather than direct internet exposure if remote NAS access is needed.
  4. Review the device's running processes and scheduled tasks for signs of installed backdoors or cryptominers.
  5. Check file system integrity — look for unexpected files added in system directories (particularly in /tmp, /var, or web root directories).
  6. Ensure the NAS admin account password is strong and changed after patching — default or weak passwords compound the risk if command injection is combined with persistence mechanisms.

Key Details

PropertyValue
CVE ID CVE-2023-27992
Vendor / Product Zyxel — Multiple Network-Attached Storage (NAS) Devices
NVD Published2023-06-19
NVD Last Modified2025-10-27
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-78 find similar ↗
CISA KEV Added2023-06-23
CISA KEV Deadline2023-07-14
Known Ransomware Use No

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2023-07-14. Apply updates per vendor instructions.

Timeline

DateEvent
2023-06-19Zyxel publishes advisory and patches for CVE-2023-27992 across NAS326, NAS540, and NAS542 product lines
2023-06-23CISA adds to Known Exploited Vulnerabilities catalog — 4 days after advisory publication
2023-07-14CISA BOD 22-01 remediation deadline