CVE

FortiManager FGFM Exposure (CVE-2026-126261)

One TCP connect on the FortiManager FGFM port plus a passive 443 check, with inventory versions deciding the CVE-2026-126261 verdict and no crafted packet sent.

AuthorTrickest
100%

Notes on this workflow

Target\nFortiManager appliances and VMs (FGFM service on TCP 541). Accepts a targets JSONL or plain host lines; an optional inventory file carries version/product (the GUI does not disclose builds to anonymous users).

How it works\nExactly ONE TCP connect to 541 per host (no handshake bytes, no reply ever written; a peer-pushed banner is recorded passively) plus one passive 443 check (read-only TLS cert subject + one unauthenticated GET / for FortiManager login markers). Version gate (FG-IR-26-275): 8.0.0, 7.6.0-7.6.7, 7.4.0-7.4.5, 7.2.0-7.2.8 affected; 8.0.1/7.6.8/7.4.6/7.2.9 fixed; trains below 7.2 are unlisted -> unknown, never confirmed-affected. There is NO safe content-level probe: the vulnerable path IS the crafted-FGFM-packet path, so no packets are ever crafted, replayed, or fuzzed, and registration passwords are never treated as mitigation.

Parse\nNormalizes targets into one row per host, deduplicates, drops malformed lines, keeps inventory version/product. Probing order randomized.

Results\nfindings.jsonl carries every probe field plus enrichment: fgfm_exposed_affected (CRITICAL, patch now), fgfm_exposed_version_unknown (HIGH), fgfm_exposed_older_train (UNKNOWN), fgfm_exposed_fixed INFO, not_exposed INFO (internal-segment caveat), not_fortimanager, error. CVSS 9.8, KEV no, EPSS 0.61% (immature - refresh before publishing), remediation includes scoping 541 to managed FortiGates and post-patch compromise review.

Overview

This workflow maps which FortiManager appliances expose the FGFM listener, the FortiGate-to-manager protocol port behind CVE-2026-126261. The registration flow performs an authorization step before the registration password is verified, so an unauthenticated attacker with reachability to the port can send crafted FGFM packets that run unauthorized code or commands on the management appliance that controls the firewall fleet. There is no safe content-level probe: any packet built to exercise the path is the exploit, so this workflow sends zero application bytes on the FGFM port. It makes one TCP connect and reads whatever the peer pushes as a passive banner, then takes version evidence only from your inventory, because the GUI discloses builds to nobody anonymous. Each host comes back with a verdict you can feed into exposure management.

Pipeline

  1. Read the target list and make exactly one TCP connect to 541 with a short timeout: no protocol handshake, no crafted or replayed FGFM payloads, no registration or tunnel attempts, and any bytes the peer pushes are recorded verbatim and never answered.
  2. Run one passive 443 check: a read-only TLS handshake capturing the certificate subject and issuer, plus a single unauthenticated GET of the root page for FortiManager login markers. No credentials, no POSTs.
  3. Match the host against the optional inventory and classify the version against the affected trains: 8.0.0, 7.6.0 through 7.6.7, 7.4.0 through 7.4.5, and 7.2.0 through 7.2.8, fixed at 8.0.1, 7.6.8, 7.4.6, and 7.2.9.
  4. Treat TCP 541 reachability as context for prioritization, never as advisory text in itself: a closed 541 with no 443 markers is not FortiManager, and an open 541 without a version stays unknown rather than affected.
  5. Reconcile one verdict per target and write findings plus summary counts.

Inputs

  • Target list. FortiManager appliance addresses you are authorized to test. The default file ships a sample host; bind your own.
  • Inventory file. Optional. Host-to-version rows from your asset system; the GUI does not disclose builds to anonymous users, so this is where verdicts get their version.

Outputs

  • findings.jsonl. One row per host: target, the 541 connect result and any passive banner, the 443 certificate and marker evidence, the inventory version, verdict, and severity.
  • summary.jsonl. One line with the total, verdict counts, and the advisory metadata including the no-KEV status and the unconfirmed-exploit note.

Integrations

  • TCP for the single 541 connect with no protocol data, and HTTPS for one read-only handshake and GET on 443.

Sample output

The records below are illustrative and do not come from a real run. They show an appliance on an affected train, one with the port open and no version evidence, and one below the lowest listed train.

targetport_541port_443_markerinventory_versionverdictdetailerror
fmg-a.example.comopenfortimanager-login7.6.5fgfm_exposed_affectedFGFM reachable on an affected train; patch to 7.6.8null
fmg-b.example.orgopenfortimanager-loginnullfgfm_exposed_version_unknownFGFM reachable, no version evidence; confirm the build in inventorynull
fmg-c.example.netopenfortimanager-login7.0.12fgfm_exposed_older_trainversion below 7.2 is not listed by the advisory; unknown, never confirmed affectednull
{"cve": "CVE-2026-126261", "product": "Fortinet FortiManager FGFM daemon", "total": 3, "verdict_counts": {"fgfm_exposed_affected": 1, "fgfm_exposed_version_unknown": 1, "fgfm_exposed_older_train": 1}, "kev": false, "itw": "no observed exploitation; community exploit claim unconfirmed"}

FAQ

Does an open FGFM port mean the appliance is vulnerable?

No. TCP 541 answering is reachability context for prioritization; the vulnerability question is answered by the inventory version against the affected trains, and a host with no version evidence stays unknown. The port state is never presented as an advisory finding on its own.

Why does the workflow send no FGFM bytes?

The vulnerable code path is the crafted-FGFM-packet path, so any packet built to exercise it executes code on a production security-management appliance. The workflow opens one connection, records what the peer volunteers, and sends nothing back.

Which versions are affected?

The advisory lists 8.0.0, 7.6.0 through 7.6.7, 7.4.0 through 7.4.5, and 7.2.0 through 7.2.8, fixed at 8.0.1, 7.6.8, 7.4.6, and 7.2.9. Older trains are not listed, which the workflow treats as unknown rather than safe.

What is CVE-2026-126261?

Improper authorization in the FortiManager FGFM registration flow: the elevation step runs before the registration password is verified, letting an unauthenticated attacker with port reachability execute code or commands. Not on CISA KEV, with no confirmed exploitation.

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.