CVE

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.

AuthorTrickest
100%

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

Overview

This workflow sorts Fortinet FortiMail appliances against the two unauthenticated criticals Fortinet disclosed in November 2026: the path traversal to code execution in the API component, CVE-2026-126147, and the command injection reachable through crafted high-availability join-request packets, CVE-2026-126148. Neither is on CISA KEV and no exploitation is confirmed, but public proof-of-concept code exists for both, which historically precedes KEV entries for Fortinet edge products. Both bugs run code unauthenticated, so safe verification is not on the menu and the workflow stays read-only: one GET of the admin interface and one SMTP banner read. Each appliance comes back with a verdict you can feed into exposure management.

Pipeline

  1. Read the target list and send one HTTPS GET to the admin interface on 443 or an explicit port, fingerprinting FortiMail from the served login page markers and parsing the firmware version where the page displays it.
  2. Connect to the mail port, read the SMTP 220 banner, and send nothing before closing. A FortiMail banner plus the Fortinet admin page identifies the appliance unambiguously.
  3. Classify the version against both ranges: 8.0.0 through 8.0.1 and 7.6.0 through 7.6.6 are affected by both CVEs, while 7.4.0 through 7.4.8 and the 7.2 line are affected by CVE-2026-126147 only.
  4. Report a version at or above 7.4.9, 7.6.7, or 8.0.2 as patched, and a confirmed FortiMail with no visible version as potentially affected rather than clean.
  5. Reconcile one verdict per target and write findings plus summary counts.

Inputs

  • Target list. FortiMail appliance addresses, with an optional explicit admin or mail port, that you are authorized to test. The default file ships a sample host; bind your own.

Outputs

  • findings.jsonl. One row per appliance: target, whether FortiMail was confirmed and how, the firmware version found, the per-CVE applicability, verdict, severity, and evidence.
  • summary.jsonl. One line with verdict counts and the sorted target lists per verdict.

Integrations

  • HTTPS for the admin login page, one GET per host. A receive-only SMTP banner grab on the mail port, with no commands sent.

Sample output

The records below are illustrative and do not come from a real run. They show an appliance affected by both CVEs, one affected by 126147 only, and one where no version is visible.

targetis_productversionversion_sourcecves_applicableverdictdetailerror
mail-a.example.comtrue7.6.5admin login pageCVE-2026-126147, CVE-2026-126148affected_both7.6.5 is below the 7.6.7 fix on both advisoriesnull
mail-b.example.orgtrue7.4.6admin login pageCVE-2026-126147affected_1261477.4.6 is below the 7.4.9 fix for the path traversal onlynull
mail-c.example.nettruenullnullnullversion_unknownFortiMail confirmed, no version visible; treat as potentially affectednull
{"cves": ["CVE-2026-126147", "CVE-2026-126148"], "total_targets": 3, "verdict_counts": {"affected_both": 1, "affected_126147": 1, "version_unknown": 1}, "affected_both_targets": ["mail-a.example.com"], "affected_126147_targets": ["mail-b.example.org"], "version_unknown_targets": ["mail-c.example.net"], "patched_targets": [], "inconclusive_targets": [], "error_targets": []}

FAQ

Does the workflow probe the HA protocol?

No. A crafted HA join-request is itself the command injection of CVE-2026-126148, so the workflow never sends one. The HA surface is covered only through the version comparison against the 7.6 and 8.0 fix builds.

Does the workflow send traversal payloads?

No. The path traversal of CVE-2026-126147 executes code on a vulnerable appliance, so there is no benign payload that proves it. Detection stays at the version comparison.

Which versions are affected?

CVE-2026-126147 covers 8.0.0 through 8.0.1, 7.6.0 through 7.6.6, 7.4.0 through 7.4.8, and the 7.2 line, fixed at 7.4.9, 7.6.7, and 8.0.2 per branch. CVE-2026-126148 covers 8.0.0 through 8.0.1 and 7.6.0 through 7.6.6 only. The appliance keeps serving mail during the check.

What are these CVEs?

Two independent unauthenticated criticals on FortiMail, both scored 9.8 by Fortinet and disclosed on 2026-11-11 as part of a four-vulnerability batch. Neither is confirmed exploited in the wild yet.

Get a personalized demo

See Trickest in Action

A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.