Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Unauthenticated RCE in WatchGuard Firebox/XTM wgagent XML-RPC endpoint

IdentifiersCVE-2022-26318CWE-120

CVE-2022-26318 (aka FBX-22786) is a critical unauthenticated remote code execution vulnerability affecting WatchGuard Firebox and XTM appliances running vulnerable Fireware OS versions. The flaw is described as residing in the wgagent/agent login XML-RPC functionality exposed on management interfaces, including the /agent/login endpoint on port 4117; supporting content also indicates related reachable paths such as /login on 4117 and the default administrative web interface on port 8080. A crafted XML login request, observed in some cases as gzip-compressed, can trigger a buffer overflow in the vulnerable service and allow arbitrary code execution without authentication. Public analysis cited in the content reports that malformed XML requests can crash wgagent and that successful exploitation can yield code execution on the appliance, including an interactive Python shell in demonstrated cases. Affected versions 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.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation allows a remote unauthenticated attacker to execute arbitrary code on the affected firewall/appliance. Reported outcomes include obtaining an interactive shell on the device; published exploitation examples indicate execution may initially occur as a non-root service account, with supporting content noting possible privilege escalation to root when chained with CVE-2022-31791. Because the target is a network security appliance, compromise can enable takeover of the device, interception of traffic, theft of configuration and credentials, persistence via management access, and use of the appliance as a foothold for lateral movement. The vulnerability is critical (CVSS 9.8) and the content indicates exploitation in the wild and inclusion in CISA KEV.

Mitigation

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

If immediate patching is not possible, restrict or disable exposure of WatchGuard management interfaces to untrusted networks, especially the vulnerable XML-RPC/login surfaces on ports 4117 and 8080. Limit access to dedicated administrative networks or VPN-only paths, apply ACLs/firewall rules to management services, and monitor for suspicious requests to /agent/login and related login endpoints. Review WatchGuard support logs and fault reports for wgagent crashes, stack traces, 502 responses, or other indicators of exploitation attempts. Because in-the-wild activity has been reported, also rotate credentials that may have traversed or been stored on the appliance and inspect the device for unauthorized changes or persistence.

Remediation

Patch, then assume compromise.

Upgrade Fireware OS to a fixed release. Based on the provided content, patched versions are 12.7.2_U2 or later, 12.1.3_U8 or later for the affected 12.x branch, and 12.5.9_U2 or later for affected 12.2.x through 12.5.x releases. Organizations should follow WatchGuard vendor guidance and ensure all affected Firebox/XTM appliances, including virtual appliances, are updated to a non-vulnerable version.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 2 / 2 TOTALView more in app
Watchguard-RCE-POC-CVE-2022-26318MaturityPoCVerified exploit

This 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.

h3llk4t3Disclosed Apr 18, 2022pythonnetwork
watchguard_cve-2022-26318MaturityPoCVerified exploit

This 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.

misterxidDisclosed Mar 28, 2022pythonnetwork
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

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence3

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity2

Community discussion across Reddit, Mastodon, and other social sources.