Outdated Fortinet FortiOS

A FortiGate or other FortiOS device runs a build older than those fixing published Fortinet advisories, including actively exploited SSL VPN and admin interface flaws.

SeverityCritical
CVSS 3.19.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Open in the calculator
CVSS 4.09.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Open in the calculator
CWECWE-1395: Dependency on Vulnerable Third-Party Component
OWASP Top 10A03:2025 Software Supply Chain Failures
MITRE ATT&CKT1190 Exploit Public-Facing Application, T1133 External Remote Services, T1212 Exploitation for Credential Access
CategoryOutdated Components

Description

A FortiGate firewall, or another device running FortiOS, is on a build older than those that fix vulnerabilities published in Fortinet's PSIRT advisories, or on a release branch that has reached end of support. FortiOS provides the firewall, the SSL VPN and the administrative web interface on these devices, so a flaw in it usually affects a system that faces the internet.

FortiOS has had a series of critical flaws in its SSL VPN service, including the path traversal CVE-2018-13379, which exposed files holding VPN users' credentials, and the heap overflow and out-of-bounds write flaws CVE-2022-42475, CVE-2023-27997 and CVE-2024-21762, which allow unauthenticated code execution. The administrative interface has had authentication bypass flaws such as CVE-2022-40684 and CVE-2024-55591, the latter giving super-admin rights through crafted requests to a Node.js websocket module. SSL VPN flaws are only reachable where that service is enabled, and administrative interface flaws need the management interface to be reachable by the attacker, but both are common on internet-facing devices.

Exploitation gives an unauthenticated attacker on the internet control of the firewall itself, or the credentials of VPN users. With that, they can change firewall policy, create administrator and VPN accounts, capture traffic and credentials passing through the device, and use the VPN to enter the internal network as a trusted user. These flaws have been exploited by both criminal and state-sponsored groups, and compromised FortiGate devices are a frequent starting point for ransomware and espionage.

The build is not always visible from outside the device, but remote checks infer it from the SSL VPN and administrative login pages; a credentialed check or the output of get system status gives a definitive answer. Fortinet has also reported attackers keeping read-only access to previously compromised devices after they were updated, so the current build alone does not show that a device is clean.

Remediation

Upgrade FortiOS to a fixed build on a supported branch and check for earlier compromise:

  • Install the fixed build named in each relevant Fortinet PSIRT advisory, following Fortinet's recommended upgrade path between builds, and upgrade or replace devices whose branch or hardware model has reached end of support.
  • Check for the indicators of compromise published by Fortinet and national cyber security agencies. Where compromise is suspected, restore a known-good configuration after a clean upgrade and reset all administrator and VPN user passwords, VPN pre-shared keys and certificates held on the device, as credentials taken earlier remain valid.
  • Subscribe to Fortinet PSIRT advisories and treat critical advisories for internet-facing devices as emergencies.

Reduce exposure while updates are planned: remove HTTP, HTTPS and SSH from the allowaccess list of internet-facing interfaces so that the administrative interface is reachable only from a management network, and limit administrator logins to known addresses with the trusthost settings on each administrator account. Disable the SSL VPN where it is not used, and require multi-factor authentication for VPN users. Confirm the fix by checking the build reported by get system status against the fixed builds in each advisory.

References


Add This Finding to Your Library

In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.

Free trial  ·  No card required

Only need the reporting? Our reporting tool is free and open source, with the same library.


More Patching and Outdated Software Findings

Every Patching and Outdated Software finding