---
title: "FortiMail Path Traversal Check (CVE-2026-126147)"
canonical: https://trickest.com/library/fortimail-path-traversal-check-cve-2026-126147
description: "Fingerprint FortiMail appliances and sort them against the two November 2026 unauthenticated criticals, CVE-2026-126147 and CVE-2026-126148, version only."
---

# FortiMail Path Traversal Check (CVE-2026-126147)

## 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](/use-cases/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.

```jsonl
{"target": "mail-a.example.com", "is_product": true, "version": "7.6.5", "version_source": "admin login page", "cves_applicable": ["CVE-2026-126147", "CVE-2026-126148"], "verdict": "affected_both", "detail": "7.6.5 is below the 7.6.7 fix on both advisories", "error": null}
{"target": "mail-b.example.org", "is_product": true, "version": "7.4.6", "version_source": "admin login page", "cves_applicable": ["CVE-2026-126147"], "verdict": "affected_126147", "detail": "7.4.6 is below the 7.4.9 fix for the path traversal only", "error": null}
{"target": "mail-c.example.net", "is_product": true, "version": null, "version_source": null, "cves_applicable": null, "verdict": "version_unknown", "detail": "FortiMail confirmed, no version visible; treat as potentially affected", "error": null}
```

```json
{"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.

## Related workflows

- [FortiAnalyzer Auth Bypass (CVE-2026-24858)](/library/fortianalyzer-auth-bypass-check-cve-2026-24858). Reach for it when the next Fortinet box is an Analyzer or Manager.
- [FortiOS Info Disclosure (CVE-2025-68686)](/library/fortinet-fortios-info-disclosure-cve-2025-68686). Reach for it when the next Fortinet flag is a firewall instead of a mail gateway.
- [PaperCut NG/MF RCE (CVE-2026-81578)](/library/papercut-ng-rce-check-cve-2026-81578). Reach for it when the next appliance flag is a print server.

---
_Markdown source of https://trickest.com/library/fortimail-path-traversal-check-cve-2026-126147._
