CVE DatabaseCVE-2023-28771
한국어 권고문 →
CVE-2023-287719.8/CRITICALCISA KEVCWE-78CWE-78

Zyxel Firewall and VPN Devices IKE Packet Decoder Remote Command Injection Vulnerability (CVE-2023-28771) Analysis and Mitigation Guide

⚡ Jump to Patch
Affected Vendors
zyxel
Affected Components
zywall, usg, vpn, usg flex, atp
Published Date
2023-04-25
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
99.3%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Zyxel ZyWALL/USG (4.60 to 4.73), VPN (4.60 to 5.35), USG FLEX (4.60 to 5.35), and ATP (4.60 to 5.35) series firmware

Impact

An unauthenticated remote attacker can execute arbitrary OS commands with root privileges by sending crafted IKE UDP packets to the affected device

Mitigation

Immediately upgrade to the latest official patched firmware version and restrict access to IKE ports (UDP 500/4500) from untrusted WAN interfaces

Affected Products & Version Scope

Zyxel ZyWALL/USG (firmware 4.60 to 4.73), VPN (firmware 4.60 to 5.35), USG FLEX (firmware 4.60 to 5.35), and ATP (firmware 4.60 to 5.35)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The primary remediation is to upgrade the device firmware to the latest patched version provided by Zyxel. Navigate to 'Maintenance > File Manager > Firmware' in the Web GUI, or upload the patched firmware via FTP/SFTP using the CLI.

bash
# Example of uploading and applying firmware via CLI (adjust paths based on model)
ftp -v -n <Device_IP>
user admin <Password>
binary
put USG_FLEX_500_V5.36(ABVC.0).bin /firmware-update
quit

2. Temporary Workaround & Hardening Configuration

If immediate patching is not feasible, restrict access to IKE services (UDP 500 and UDP 4500) from untrusted WAN interfaces using security policies.

bash
# Restrict IKE access from WAN interface via CLI
configure terminal

# Create a security policy rule to deny untrusted IKE traffic
secure-policy rule 10
  action deny
  service IKE
  from WAN
  to any
  exit
write

3. Log Audit & IoC Verification Commands

Inspect system logs for anomalous IKE packet decoding errors or payloads containing shell metacharacters. Use the following command on your centralized syslog server to detect potential exploitation attempts.

bash
# Search syslog for suspicious shell metacharacters in Zyxel IKE daemon logs
grep -Ei 'ike|charon|pluto' /var/log/network_devices.log | grep -E ';|\||\&|\$\(|eval|sh|bash'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation in the wild, immediately apply the official firmware updates to secure your perimeter.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2023-28771) is an OS command injection vulnerability (CWE-78) residing in the Internet Key Exchange (IKE) packet decoding engine of Zyxel security appliances. The root cause lies in the improper handling and insufficient sanitization of input values within error messages generated during IKE packet decoding. An unauthenticated attacker can exploit this by sending specially crafted packets, leading to arbitrary command execution on the underlying operating system.

2. Exploitation Mechanics & Attack Scenario

An attacker transmits a crafted IKEv1/IKEv2 proposal packet containing shell metacharacters (such as ';', '&', or '|') within specific fields (e.g., Notification or ID Payloads) to UDP port 500 or 4500 on the target device. When the Zyxel IKE daemon fails to decode the packet, it attempts to log the error or execute a system command using the unsanitized payload. This triggers the execution of the attacker's injected commands with root privileges. This vulnerability is actively exploited in the wild (listed in CISA KEV) for botnet propagation and establishing persistent backdoors.

3. Infrastructure & Business Impact

As firewalls and VPN gateways serve as the primary perimeter defense, compromise of these devices grants attackers an initial foothold inside the corporate network. This can lead to lateral movement, internal network scanning, credential harvesting, and ransomware deployment. Given its CVSS score of 9.8 and an extremely high EPSS score of 0.9928, automated scanning and exploitation pose an immediate threat to business continuity.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2023-28771)

FAQ

Q1. How critical is CVE-2023-28771 and is it actively exploited in the wild?

CVE-2023-28771 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 99.3%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2023-28771?

Primary impacted vendors include zyxel across zywall, usg, vpn, usg flex, atp. Scope summary: Zyxel ZyWALL/USG (firmware 4.60 to 4.73), VPN (firmware 4.60 to 5.35), USG FLEX (firmware 4.60 to 5.35), and ATP (firmware 4.60 to 5.35)

Q3. What temporary mitigations or workarounds exist for CVE-2023-28771 before patching?

[Mitigation] Immediately upgrade to the latest official patched firmware version and restrict access to IKE ports (UDP 500/4500) from untrusted WAN interfaces Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2023-28771

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (zyxel)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2023-28771 Zyxel Firewall and VPN Devices IKE Packet Decoder Remote Command Injection Vulnerability (CVE-2023-28771) Analysis and Mitigation Guide (CVSS 9.8) - Patch & Workaround | CVE Pulse