CVE-2023-33009 — Zyxel Multiple Firewalls Buffer Overflow Vulnerability

CVE-2023-33009

Zyxel ATP/USG FLEX/VPN Firewalls — Pre-Auth Buffer Overflow in Notification Function Enables RCE or DoS; Paired with CVE-2023-33010; Rapid KEV Addition May 2023

What is Zyxel ATP/USG FLEX?

Zyxel ATP (Advanced Threat Protection), USG FLEX, USG FLEX 50(W), USG20(W)-VPN, VPN, and ZyWALL/USG are network security gateway and firewall appliances used by small-to-medium businesses and branch offices for perimeter security, VPN connectivity, content filtering, and threat prevention. These appliances sit at the network edge, handling all inbound and outbound traffic for the organizations they protect. Compromise of a network perimeter firewall provides an attacker with a privileged position: network traffic visibility, VPN credential access, and a foothold on the internal network segment the firewall protects. Zyxel firewall vulnerabilities have been consistently exploited by sophisticated threat actors including Mirai botnets and nation-state affiliated groups.

Overview

CVE-2023-33009 is a pre-authentication buffer overflow vulnerability in the notification handling function of multiple Zyxel firewall product lines. An unauthenticated attacker with network access to the firewall can send a specially crafted packet to trigger a buffer overflow that results in either remote code execution or denial of service on the appliance. Zyxel published patches on May 24, 2023; CISA added CVE-2023-33009 to KEV 12 days later. CVE-2023-33009 was patched alongside CVE-2023-33010 (a second buffer overflow in a separate function), and both were confirmed exploited in the wild.

Affected Versions

Product Vulnerable Fixed
ATP Series ZLD V4.32 to V5.36 Patch 2 ZLD V5.36 Patch 2 (and later)
USG FLEX Series ZLD V4.50 to V5.36 Patch 2 ZLD V5.36 Patch 2
USG FLEX 50(W) / USG20(W)-VPN ZLD V4.16 to V5.36 Patch 2 ZLD V5.36 Patch 2
VPN Series ZLD V4.30 to V5.36 Patch 2 ZLD V5.36 Patch 2
ZyWALL/USG Series ZLD V4.09 to V4.73 Patch 1 ZLD V4.73 Patch 1

Technical Details

CWE-120 (Buffer Copy without Checking Size of Input — Classic Buffer Overflow). Zyxel's firewall firmware contains a notification handling function that processes incoming network data without properly validating input length before copying it into a fixed-size buffer. An unauthenticated attacker can send a specially crafted network request with an oversized payload that overflows the buffer, overwriting adjacent memory — including stack return addresses or function pointers.

By controlling the overwritten memory, the attacker can redirect program execution to attacker-supplied shellcode (RCE), or simply cause the notification handler process to crash, resulting in denial-of-service on the firewall. Pre-authentication exploitability (PR:N) means no credentials or prior knowledge of the target device are required — only network access to the firewall's management or VPN interface.

CVE-2023-33009 and CVE-2023-33010 are separate buffer overflows in different functions of the same firmware, patched together in the May 2023 advisory. CISA only added CVE-2023-33009 to KEV, suggesting it was the primary vector used in observed exploitation.

Discovery

Discovered by TRAPA Security researchers who identified and reported both buffer overflow vulnerabilities (CVE-2023-33009 and CVE-2023-33010) to Zyxel. Zyxel coordinated the fix and released patches simultaneously with the advisory.

Exploitation Context

Zyxel network devices have been a repeated target for botnet operators and advanced persistent threat actors. The CVE-2023-33009 vulnerability was exploited rapidly after public advisory disclosure, leading to CISA's KEV addition just 12 days later. Zyxel edge devices are attractive targets because:

  1. They are deployed at the network perimeter of SMBs and branch offices with limited security monitoring.
  2. Firmware update cadences for SMB-grade appliances are often slow — devices run outdated firmware for extended periods.
  3. Compromising a perimeter firewall provides network-level access and can facilitate VPN credential theft.

Nation-state actors have historically exploited Zyxel vulnerabilities for initial access in campaigns targeting industrial, government, and critical infrastructure networks (e.g., Volt Typhoon's use of Zyxel devices). Botnet operators also incorporate Zyxel RCE vulnerabilities to recruit compromised devices for DDoS and cryptomining infrastructure.

Remediation

  1. Apply Zyxel firmware updates per the May 2023 advisory — update to ZLD V5.36 Patch 2 or later for ATP/USG FLEX/VPN series, and ZLD V4.73 Patch 1 or later for ZyWALL/USG series.
  2. Also apply patches for CVE-2023-33010 (the companion buffer overflow) — both are addressed in the same firmware update.
  3. Restrict management interface access — firewall management (HTTP/HTTPS/SSH) should only be accessible from dedicated management networks, not from the internet.
  4. Disable remote management over WAN if not required — Zyxel firewall management interfaces exposed to the internet significantly expand the attack surface.
  5. Review firewall logs for unexpected traffic patterns or connections around and after the May 2023 disclosure period.
  6. After patching, verify the firewall's running configuration for unauthorized changes — check VPN user accounts, firewall rules, and NAT policy for modifications that could indicate prior compromise.
  7. Consider enabling Zyxel's firmware auto-update functionality if available for your model to reduce the window between patch availability and deployment.

Key Details

PropertyValue
CVE ID CVE-2023-33009
Vendor / Product Zyxel — Multiple Firewalls
NVD Published2023-05-24
NVD Last Modified2026-02-26
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-120 find similar ↗
CISA KEV Added2023-06-05
CISA KEV Deadline2023-06-26
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-06-26. Apply updates per vendor instructions.

Timeline

DateEvent
2023-05-24Zyxel publishes advisory and patches for CVE-2023-33009 and CVE-2023-33010 across ATP, USG FLEX, VPN, and ZyWALL firewall series
2023-06-05CISA adds CVE-2023-33009 to Known Exploited Vulnerabilities catalog — 12 days after advisory
2023-06-26CISA BOD 22-01 remediation deadline