FortiMail Path Traversal Check (CVE-2026-126147)
Fingerprint FortiMail appliances and sort them against the two November 2026 unauthenticated criticals, CVE-2026-126147 and CVE-2026-126148, version only.
Notes on this workflow
Results
findings.jsonl: one row per target — verdict (affected_both / affected_126147 / patched / version_unknown / inconclusive / error / not_product), version, SMTP banner evidence, CVSS 9.8 both, remediation (7.4.9 / 7.6.7 / 8.0.2; restrict HA ports to cluster peers). summary.jsonl: verdict counts and target lists. Version-unknown and error rows are never clean.
Mail Probe — how it works
1. One HTTPS GET of the admin login page fingerprints FortiMail/Fortinet branding and parses the firmware version where the page exposes it. 2. One SMTP banner grab: connect to the mail port, READ the 220 banner, send nothing, close — corroboration only. 3. The HA protocol is never touched. Classification: 8.0.0-8.0.1 and 7.6.0-7.6.6 = affected by BOTH CVEs (affected_both); 7.4.0-7.4.8 and 7.2.x = affected_126147 only (126148 does not affect those branches; 7.2 has no fixed release); at or above 7.4.9 / 7.6.7 / 8.0.2 per branch = patched; FortiMail confirmed with no visible version = version_unknown (the default — never clean).
Target List
A FILE of appliance URLs, one per line (HTTPS admin interface on TCP 443, or an explicit port; the SMTP banner grab uses TCP 25 unless the target's port is a mail port). Production mail infrastructure — the probe is two polite requests. The workflow fails closed when the input is missing or empty.
FortiMail Path Traversal + HA Injection Check — CVE-2026-126147 / CVE-2026-126148
Finds Fortinet FortiMail appliances and classifies exposure to two unauthenticated 9.8s disclosed 2026-11-11: CVE-2026-126147 (path traversal to code execution in the API component, FG-IR-26-199) and CVE-2026-126148 (OS command injection via crafted HA join-request packets, FG-IR-26-200). Version fingerprint only — no traversal payloads are ever sent and the HA protocol is not probed at all, because a crafted HA join-request IS the command injection. Honest scoring: both 9.8, public PoCs exist, not KEV and no confirmed wild exploitation as of 2026-11-25 — a patch-now priority, not an active-incident one; the same product family hit KEV in October (CVE-2026-104286). Fortinet advisories