Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-26318: Unauthenticated remote code execution in WatchGuard Firebox and XTM

Published Mar 4, 2022 · 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
EPSS78.2%100th percentile
CISA KEVYesAdded Mar 25, 2022
In the wildActivePer CISA KEV
Vendor
WatchGuard Technologies
IdentifiersCVE-2022-26318CWE-120

CVE-2022-26318, also tracked as FBX-22786, is an unauthenticated remote code execution vulnerability in WatchGuard Firebox and XTM appliances. The wgagent service parses attacker-controlled XML using libxml2. Its startElementNs callback uses unbounded strcat operations to append XML element names to a fixed XPath buffer. The resulting overflow can corrupt an adjacent heap-resident SAX handler and overwrite a callback pointer, enabling control-flow hijacking and arbitrary code execution. A demonstrated exploit uses return-oriented programming to execute stack-resident shellcode. Affected releases include 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. Exploitation has been observed in the wild.

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.

An unauthenticated remote attacker can execute arbitrary code in the wgagent service context, read and exfiltrate appliance configuration data, and disrupt the service with malformed XML requests. Observed exploitation encrypted configuration data before exfiltration. Demonstrated shell access ran as UID 99 rather than root; root access was described as requiring a separate privilege-escalation vulnerability, CVE-2022-31791.

Mitigation

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

Isolate management interfaces and restrict remote management access to trusted administrative networks using WatchGuard remote-management best practices. Removing shell utilities or mounting filesystems read-only does not adequately prevent exploitation, although these measures can complicate persistence. Apply the firmware fix rather than relying on these hardening measures.

Remediation

Patch, then assume compromise.

Upgrade to a supported Fireware OS release containing the fix. Identified fixed releases are 12.7.2_U2, 12.1.3_U8, and 12.5.9_U2 for their respective release branches. WatchGuard also recommends following its complete remediation plan associated with the update that addressed both this vulnerability and Cyclops Blink.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
watchguard_firebox_unauth_rce_cve_2022_26318.rbThis repository contains a single Metasploit module targeting CVE-2022-26318, a pre-authentication remote command execution vulnerability in WatchGuard Firebox and XTM appliances running vulnerable versions of Fireware OS. The exploit abuses a buffer overflow in the /agent/login endpoint of the administration interface (typically on ports 8080 or 4117), which is handled by a Python backend and a C binary (wgagent). The module checks for the presence of a WatchGuard Firebox by querying /auth/login, then delivers a specially crafted, gzipped XML-RPC payload to /agent/login to trigger the overflow and execute a reverse Python shell as the 'nobody' user. The payload is written to a temporary file in /tmp on the target and connects back to the attacker's machine, providing an interactive shell. The exploit is weaponized, allowing for customizable payloads and is suitable for operational use. The code is written in Ruby and is structured as a standard Metasploit module.Disclosed Aug 29, 2022 · Framework: metasploit · ruby · networkWeaponizedwatchguard_cve-2022-26318This repository contains a single file, README.md, which includes a full Python proof-of-concept exploit for CVE-2022-26318, a remote code execution vulnerability in WatchGuard XTM and FireWare OS devices. The exploit crafts a malicious XML-RPC payload, compresses it with gzip, and sends it over an SSL-wrapped TCP connection to the target device's agent login service on port 4117. If successful, the payload causes the target device to open a reverse shell connection back to the attacker's machine (L_HOST) on port 8888, granting the attacker remote command execution. The exploit is operational, with a hardcoded Python reverse shell payload, and requires the attacker to set up a netcat listener to receive the shell. The code is self-contained and does not rely on any external frameworks. The repository is focused and provides a clear demonstration of the vulnerability's impact.misterxid · Disclosed Mar 28, 2022 · python · networkOperationalWatchguard-RCE-POC-CVE-2022-26318This repository contains a Python proof-of-concept exploit (POCwg.py) for CVE-2022-26318, a remote code execution vulnerability affecting WatchGuard XTM and FireWare OS devices. The exploit works by sending a specially crafted, gzipped HTTP POST request to the /agent/login endpoint on the target device (default port 4117, R_HOST). The payload is designed to trigger a buffer overflow and execute a Python-based reverse shell, connecting back to the attacker's machine (L_HOST) on port 8888. The attacker must have a netcat listener running to receive the shell. The repository consists of the exploit script and a brief README. The exploit is operational, providing a working reverse shell if the target is vulnerable and reachable.h3llk4t3 · Disclosed Apr 18, 2022 · 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
WatchGuard TechnologiesFirewareoperating_system
FAQ

Frequently asked questions

Is CVE-2022-26318 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 Mar 25, 2022.
Is there a public exploit for CVE-2022-26318?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-26318, the earliest disclosed Mar 28, 2022.
Is there a patch for CVE-2022-26318?
Upgrade to a supported Fireware OS release containing the fix. Identified fixed releases are 12.7.2_U2, 12.1.3_U8, and 12.5.9_U2 for their respective release branches.
What products are affected by CVE-2022-26318?
WatchGuard Technologies Fireware.
How severe is CVE-2022-26318?
CVE-2022-26318 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 78.2% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

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

View more in app →
+15 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 evidence3Every report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.