Unauthenticated RCE in WatchGuard Firebox/XTM wgagent XML-RPC endpoint
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.
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.
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.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.
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.
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.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical unauthenticated remote code execution vulnerability in WatchGuard Firebox and XTM appliances caused by a buffer overflow in the agent login XML-RPC endpoint on port 4117 when processing crafted gzip-compressed payloads.
A remote code execution vulnerability in WatchGuard Firebox, specifically targeting the /agent/login XML-RPC endpoint.
A WatchGuard vulnerability referenced as part of a multi-year Russian-linked targeting timeline against global/critical infrastructure.
A critical unauthenticated remote code execution vulnerability in WatchGuard Firebox and XTM appliances, exploited by Russian GRU-linked attackers for espionage since 2021.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.