Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-28771: Unauthenticated OS command injection in Zyxel firewall firmware

Published Apr 25, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.3%100th percentile
CISA KEVYesAdded May 31, 2023
In the wildActivePer CISA KEV
Vendor
Zyxel Communications
IdentifiersCVE-2023-28771CWE-78 · Improper Neutralization of Special…

CVE-2023-28771 is an OS command injection vulnerability caused by improper error message handling in Zyxel firewall firmware. It affects ZyWALL/USG versions 4.60 through 4.73 and VPN, USG FLEX, and ATP versions 4.60 through 5.35. An unauthenticated remote attacker can trigger command execution by sending specially crafted Internet Key Exchange (IKE) packets over UDP port 500. Exploitation has been observed in campaigns deploying Mirai-derived and other DDoS botnets.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits remote OS command execution and can give an attacker full control of an affected firewall without credentials. Compromised devices have been used to download and execute malware and participate in DDoS botnets, enabling attacks against other systems.

Mitigation

If you can’t patch tonight, do this now.

Review Zyxel's security advisory and apply the latest relevant patches as soon as possible. No separate temporary workaround is specified.

Remediation

Patch, then assume compromise.

Upgrade affected devices to vendor-provided firmware that fixes CVE-2023-28771, following Zyxel's model-specific security advisory. Verify the applicable firmware release for each model; affected-version listings differ for ATP100W. Prioritize deployment because exploitation is active and public exploit material exists.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
zyxel_ike_decoder_rce_cve_2023_28771.rbThis repository contains a single Metasploit module (zyxel_ike_decoder_rce_cve_2023_28771.rb) that exploits CVE-2023-28771, a critical unauthenticated remote code execution vulnerability in the IKE packet decoder of several Zyxel firewall and VPN devices. The exploit targets the IKE service exposed on UDP port 500 of the WAN interface, which is enabled by default on affected devices. By sending a specially crafted IKE packet containing a command injection payload, the module achieves code execution as root. The module supports delivering various command payloads, with a default Meterpreter reverse shell via HTTP fetch. The exploit is operational and can be used to gain full control of vulnerable Zyxel devices. The code is written in Ruby and is structured as a standard Metasploit exploit module, with clear separation of check, exploit, and payload delivery logic. No hardcoded IPs or domains are present, but the attack is fingerprintable by its use of UDP/500 and the IKE protocol.Disclosed Mar 31, 2023 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-28771-PoCThis repository provides a proof-of-concept exploit for CVE-2023-28771, a command injection vulnerability affecting Zyxel firewall and VPN devices. The main file, 'CVE-2023-28771-poc.py', is a Python script that uses the Scapy library to craft and send a malicious IKEv2 packet to a specified target (rhost) on UDP port 500. The script allows the user to either execute an arbitrary shell command on the target device (using the --cmd argument) or spawn a reverse shell back to the attacker's machine (using --lhost and --lport arguments). The payload is embedded in the Notify payload of the IKEv2 packet. The repository also includes a README.md with usage instructions and a requirements.txt specifying the Scapy dependency. The exploit is operational and can be used to gain remote code execution on vulnerable Zyxel devices exposed to the internet.benjaminhays · Disclosed May 23, 2023 · python · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Zyxel CommunicationsAtp100 Firmwareoperating_system
Zyxel CommunicationsAtp100w Firmwareoperating_system
Zyxel CommunicationsAtp200 Firmwareoperating_system
Zyxel CommunicationsAtp500 Firmwareoperating_system
Zyxel CommunicationsAtp700 Firmwareoperating_system
Zyxel CommunicationsAtp800 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 100 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 100w Firmwareoperating_system
Zyxel CommunicationsUsg Flex 200 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 50 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 500 Firmwareoperating_system
Zyxel CommunicationsUsg Flex 50w Firmwareoperating_system
Zyxel CommunicationsUsg Flex 700 Firmwareoperating_system
Zyxel CommunicationsVpn100 Firmwareoperating_system
Zyxel CommunicationsVpn1000 Firmwareoperating_system
Zyxel CommunicationsVpn300 Firmwareoperating_system
Zyxel CommunicationsVpn50 Firmwareoperating_system
Zyxel CommunicationsZywall Usg 100 Firmwareoperating_system
Zyxel CommunicationsZywall Usg 310 Firmwareoperating_system
FAQ

Frequently asked questions

Is CVE-2023-28771 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on May 31, 2023.
Is there a public exploit for CVE-2023-28771?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-28771, the earliest disclosed Mar 31, 2023.
Is there a patch for CVE-2023-28771?
Upgrade affected devices to vendor-provided firmware that fixes CVE-2023-28771, following Zyxel's model-specific security advisory. Verify the applicable firmware release for each model; affected-version listings differ for ATP100W.
What products are affected by CVE-2023-28771?
Zyxel Communications Atp100 Firmware, Zyxel Communications Atp100w Firmware, Zyxel Communications Atp200 Firmware, Zyxel Communications Atp500 Firmware, Zyxel Communications Atp700 Firmware, and 14 more.
How severe is CVE-2023-28771?
CVE-2023-28771 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.3% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
db gcveNews · Sep 16, 2026CVE-2023-28771 - Vulnerability-LookupA critical OS command injection vulnerability in Zyxel firewalls, rated CVSS 3.1 9.8. Exploitation requires neither authentication nor user interaction and can severely affect confidentiality, integrity, and availability. The vendor describes affected ZyWALL/USG firmware as versions 4.60–4.73 and VPN, USG FLEX, and ATP firmware as versions 4.60–5.35; model-specific configuration records contain some differences. Public exploit code is available. CISA added the vulnerability to its Known Exploited Vulnerabilities catalog on May 31, 2023, and its SSVC assessment records active exploitation. The supplied detection rule targets crafted UDP traffic to port 500 and references DDoS botnets targeting this vulnerability. Software updates are available, and CISA directs users to apply vendor updates.Read more ↗secpod blogNews · Dec 4, 2025AISURU Botnet: Inside the 29.7 Tbps Mega-Scale DDoS WeaponA critical improper error message handling vulnerability in Zyxel firewall and VPN devices, allowing unauthenticated remote OS command execution via crafted packets.Read more ↗zeropath blogNews · Oct 20, 2025Zyxel ATP and USG FLEX Firewalls CVE-2025-9133: Brief Summary of a Missing Authorization Vulnerability - ZeroPath Blog | ZeroPathA previously disclosed Zyxel firewall vulnerability involving improper error handling that can lead to remote code execution.Read more ↗scworldNews · Jun 19, 2025Hacking Drivers – PSW #879A Zyxel firewall vulnerability (exploitable over UDP/500) that is seeing exploit attempts and has publicly available exploit code (Metasploit), making unpatched internet-exposed devices high risk.Read more ↗
+12 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware9Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity21Community discussion across Reddit, Mastodon, and other social sources.