CVE-2022-26318: Unauthenticated remote code execution in WatchGuard Firebox and XTM
- Vendor
- WatchGuard Technologies
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.
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.
Exploits
3 exploits validated by Mallory's analysis.
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.
References
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.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.