Fortinet reports a heap-based buffer overflow in FortiOS and FortiSwitchManager that can let an attacker run unauthorized code or commands through specially crafted packets. CISA lists it as exploited.
What is affected
The vulnerability is tracked as CVE-2025-25249. According to the description in the public sources, it affects FortiOS 7.6.0 through 7.6.3, 7.4.0 through 7.4.8, 7.2.0 through 7.2.11, 7.0.0 through 7.0.17 and all versions of 6.4, as well as FortiSwitchManager 7.2.0 through 7.2.6 and 7.0.0 through 7.0.5. It was disclosed on 2026-01-13.
The sources give these affected version ranges:
≥ 6.4.0, < 7.0.18≥ 7.0.0, < 7.0.6≥ 7.2.0, < 7.2.7≥ 7.2.0, < 7.2.12≥ 7.4.0, < 7.4.9≥ 7.6.0, < 7.6.4
The ranges are listed as published and are not split by product. The Fortinet security advisory is the place to confirm which range applies to which product.
What the flaw allows
Fortinet describes the weakness as a heap-based buffer overflow, which the sources classify as CWE-122 and CWE-787. The description states that it allows an attacker to execute unauthorized code or commands by sending specially crafted packets.
The CVSS 3.1 base score is 9.8, which is rated critical. The vector, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicates that the flaw can be reached over the network, with low attack complexity, without privileges and without user interaction. The impact on confidentiality, integrity and availability is rated as complete in each case.
Exploitation
CISA lists this vulnerability as exploited in its Known Exploited Vulnerabilities catalogue. It was added on 2026-09-09. CISA states a due date of 2026-09-12; this is CISA's deadline for US federal agencies and does not bind other organisations, though it shows how urgently CISA treats the issue. CISA records the use in ransomware campaigns as unknown.
The sources do not describe who is exploiting the flaw or how, and this advisory does not go into attack details.
What to do
Check whether you run FortiOS or FortiSwitchManager in any of the version ranges above, including devices that are reachable from the internet or from less trusted networks. The Fortinet advisory lists the fixed releases and the vendor's instructions. CISA's required action for its catalogue entry is to apply mitigations in line with the vendor's instructions, and to discontinue use of the product if mitigations are not available. Pinet has not analysed or tested this vulnerability; this advisory summarises what the public sources report.
What to do
Follow the instructions in the Fortinet security advisory, which lists the fixed releases and the vendor's guidance. CISA's required action is to apply mitigations as the vendor instructs, or to stop using the product if mitigations are unavailable. Further details are in the NVD entry.