Over 375,000 Firewalls Leak FortiOS Versions via FortiGate Port 541
TL;DR
Between October 14 and November 12, 2026, VulnCheck found 375,904 web-facing FortiGate firewalls exposing FortiGate port 541. Each open box sends a TLS ClientHello that lets scanners map its FortiOS era and known CVEs using JA4 hashes. At least 160,000 of these hosts run code tied to known bugs, including live exploited flaws.
Why It Matters
By default, FortiGate firewalls hide their exact software build from outside scans. Across 838,100 FortiOS hosts tracked by VulnCheck Target Intelligence, only 269 boxes (0.03 percent) show a version string. However, an open FortiGate port 541 breaks that cover and hands threat actors a clear map of the device.
Because these firewalls sit at the edge of firm networks, version leaks speed up targeted raids. VulnCheck found that 6.8 percent to 36.1 percent of open hosts run end-of-support FortiOS branches. Furthermore, at least 160,000 hosts fall into eras tied to known CVEs. That set includes all 11,264 Gen 2 firewalls running FortiOS 5.4 to 6.0.4. Every one of them is exposed to CVE-2022-42475, a pre-auth SSL-VPN heap bug tied to ransomware.
While JA4 scanning itself is a passive method rather than a new zero-day, the linked bugs face active abuse. Both CISA’s KEV catalog and VulnCheck KEV confirm live attacks in the wild and public exploit code for CVE-2024-23113, CVE-2022-42475, and CVE-2024-47575.
How the Attack Works
Reversed TLS Handshakes on Port 541
The FortiGate-to-FortiManager (FGFM) service runs on TCP port 541 for IPv4 and port 542 for IPv6. In the VulnCheck FortiGate ClientHello research report, analysts spotted an odd trait in unknown banner logs. Instead of waiting like a normal server, an open FortiGate starts a TLS handshake by sending a ClientHello packet to any scanner that connects.
VulnCheck notes: “Regardless of version, FGFM on port 541 is a device-management channel that should never be reachable from the internet (Fortinet suggests removing fgfm access). Every one of these hosts is exposing its FortiGate control plane to anyone who can open a socket.”
At first, an open FortiGate port 541 may look like CVE-2024-47575 (FortiJump), a FortiManager bug abused in 2024. Yet FortiManager answers as a TLS server, while FortiGate sends the ClientHello. On FortiGate, the real port 541 threat is CVE-2024-23113, a CVSS 9.8 format string RCE in fgfmd. Fortinet patched it in advisory FG-IR-24-029, and CISA added it to KEV in October 2024.
Mapping OpenSSL Builds With JA4
To turn raw packets into version ranges, VulnCheck used JA4, a hash tool built by FoxIO. Each FortiOS era ships a newer OpenSSL build, which changes the ciphers and fields inside the ClientHello. By unpacking firmware files with fortitool, the team mapped six eras from Gen 1 to Gen 5. They also tagged Gen 5P for FortiOS 7.4.12 and 7.4.13, which pin their own TLS settings.
VulnCheck sums up the risk plainly: “About 376,000 internet-facing FortiGate hosts expose their FGFM management port, and each one answers a connection with a ClientHello that gives away its generation.”
Affected Versions
This FortiGate port 541 exposure hits any FortiGate firewall with FGFM open on a WAN port across all six eras:
- Legacy Gen 1 and Gen 2 (25,640 hosts): FortiOS 5.4, 5.6, and 6.0.0 to 6.0.4, all past end of support with up to 12 KEV CVEs.
- Mixed Gen 3 (110,078 hosts): FortiOS 6.0.5 to 7.6.0, mixing old and active branches with 21 KEV CVEs, including CVE-2024-23113.
- Mid-Cycle Gen 4 (38,829 hosts): FortiOS 7.4.8 and 7.6.1 to 7.6.4, tied to 7 KEV CVEs.
- Current Gen 5 and Gen 5P (201,357 hosts): Newer builds from 7.4.9 to 8.0.1, where Gen 5 still maps to 2 KEV CVEs.
Patch and Mitigation Steps
Admins should never expose TCP ports 541 or 542 to the open web. First, remove fgfm access from all WAN ports and add a local-in policy that allows only your FortiManager IP. Next, upgrade end-of-life firewalls to active, patched FortiOS builds. Finally, teams can run VulnCheck’s Suricata and Snort JA4 rules to find open FortiGate port 541 hosts on their networks.
Support Our Threat Intelligence
If you find our technology report and cybersecurity news helpful, consider supporting our work.