Skip to main content

Fortinet FortiOS CVE-2025-25249

CRITICAL
Heap-based Buffer Overflow (CWE-122)
2026-01-13 psirt@fortinet.com
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-exposed FortiOS/FortiSwitchManager
  2. Delivery
    Send specially crafted packet
  3. Exploit
    Trigger heap buffer overflow in parser
  4. Execution
    Hijack execution in privileged daemon
  5. Persist
    Execute unauthorized code/commands
  6. Impact
    Deploy RAT and persist

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The affected device must be network-reachable by the attacker on the vulnerable service that parses the crafted packets, and it must run an unpatched FortiOS (6.4-7.6.3 as listed) or FortiSwitchManager (7.0.0-7.0.5 / 7.2.0-7.2.6) build. Per CVSS AV:N/AC:L/PR:N/UI:N there are no authentication, privilege, or user-interaction prerequisites - unauthenticated remote exploitation against a reachable vulnerable instance. The main limiting factor is exposure: devices with management/affected services restricted to trusted networks are far less exposed, and patched builds are not affected.

Impact

This is a top-priority vulnerability. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, 9.8) describes a network-reachable, low-complexity, unauthenticated bug, and CISA KEV confirms real-world active exploitation with public POC - the strongest possible combination of signals. The one apparent conflict is EPSS at 0.01% (2nd percentile), which is unusually low for a KEV-listed flaw; this most plausibly reflects targeted, operator-driven exploitation of internet-exposed FortiGate devices rather than broad automated mass exploitation, and low EPSS should NOT be read as low risk here given the confirmed KEV status. Treat as an emergency-patch item for any internet-facing FortiOS/FortiSwitchManager deployment.

Exploit ScenarioDerived

An attacker locates an internet-exposed FortiGate or FortiSwitchManager instance and sends a specially crafted packet that overflows a heap buffer in a network-facing service, corrupting heap memory to hijack execution and run commands with the daemon's privileges. With no authentication or user interaction needed and public exploit code available, this can be automated against exposed devices and, per threat reporting, used to deploy a persistent FortiGate RAT.

Emergency Immediate action required. Why: CRITICAL + in CISA KEV (actively exploited), no patch available.
Exploited in the wild (CISA KEV) No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 09, 2026

Remote code execution in Fortinet FortiOS (6.4 through 7.6.3) and FortiSwitchManager (7.0.x/7.2.x) lets an attacker run unauthorized code or commands by sending specially crafted packets to an affected device. The flaw is a heap-based buffer overflow requiring no authentication or user interaction, and it is confirmed actively exploited (CISA KEV) with publicly available exploit code, reportedly tied to a 'PivotC2' FortiGate RAT. Despite the KEV listing, EPSS is only 0.01% (2nd percentile), indicating targeted rather than mass-scanning exploitation to date.

Earlier versions of this analysis (1)
v1 Mar 12, 2026 - 21:54 CVSS 8.1

A heap-based buffer overflow vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0.0 through 7.0.17, FortiOS 6.4 all versions, FortiSwitchManager 7.2.0 through 7.2.6, FortiSwitchManager 7.0.0 through 7.0.5 allows attacker to execute unauthorized code or commands via specially crafted packets [CVSS 8.1 HIGH]

RemediationAI

Apply the Fortinet fixed releases per advisory FG-IR-25-084 (https://fortiguard.fortinet.com/psirt/FG-IR-25-084), which identifies the exact patched builds for each FortiOS and FortiSwitchManager branch - upgrade beyond the listed vulnerable ranges (e.g. past 7.6.3, 7.4.8, 7.2.11, 7.0.17), and note that FortiOS 6.4 is end-of-support so migrate to a supported patched branch. Because exploitation is over the network via crafted packets, the primary compensating control while patching is to restrict reachability: remove management and administrative interfaces from the public internet, limit the affected services to trusted management networks or VPN, and apply local-in firewall policies to block untrusted sources - with the trade-off that overly broad blocks can break legitimate remote administration. Given confirmed active exploitation, also hunt for compromise (unexpected admin accounts, config changes, and the referenced RAT indicators from https://socradar.io/blog/cve-2025-25249-pivotc2-fortigate-rat/) rather than assuming patching alone is sufficient.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected products are Fortinet's FortiOS network operating system (running FortiGate firewalls/appliances) and FortiSwitchManager, with CPE data also naming FortiSASE builds 25.1.39 and 25.1.51. The root cause is CWE-122 (heap-based buffer overflow): a network-facing parser processes attacker-supplied packet data into an undersized heap allocation, corrupting adjacent heap metadata or objects. On embedded network appliances such as these, successful heap grooming and overflow typically yields code execution in a privileged daemon context, which is why CVSS rates confidentiality, integrity, and availability all High.

Know when Fortios gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Unauthenticated network-reachable crafted packets yield code execution with no user interaction, giving full confidentiality, integrity, and availability impact (AV:N/AC:L/PR:N/UI:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Sep 09, 2026 - 20:28 vuln.today
v2 - CVSS changed
Severity Changed
Sep 09, 2026 - 20:22 NVD
HIGH CRITICAL
CVSS changed
Sep 09, 2026 - 20:22 NVD
8.1 (HIGH) 9.8 (CRITICAL)
Added to CISA KEV
Sep 09, 2026 - 19:34 CISA
CVE Published
Jan 13, 2026 - 17:15 nvd
HIGH 8.1

DescriptionNVD

A heap-based buffer overflow vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0.0 through 7.0.17, FortiOS 6.4 all versions, FortiSwitchManager 7.2.0 through 7.2.6, FortiSwitchManager 7.0.0 through 7.0.5 allows attacker to execute unauthorized code or commands via specially crafted packets

Executive ViewAI

Why It Matters

Fortinet FortiOS versions 6.4 through 7.6.3 and FortiSwitchManager 7.0.x/7.2.x contain a critical unauthenticated remote code execution vulnerability allowing attackers to execute arbitrary commands on affected network gateways and switches. The vulnerability is confirmed actively exploited (CISA KEV) with publicly available exploit code, creating immediate risk to organizations' network perimeter defenses. No vendor patch is currently available, requiring emergency mitigation measures to prevent full firewall compromise and lateral network access.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Network segmentation to isolate affected FortiOS/FortiSwitchManager instances from direct internet exposure; (2) Deploy IDS/IPS signatures targeting CVE-2025-25249 exploitation traffic on network perimeter; (3) Restrict administrative interface access via IP whitelisting from authorized administrative networks only; (4) Enable comprehensive logging and enable continuous log monitoring for indicators of compromise including unexpected command execution; (5) Conduct threat hunting for PivotC2 C2 beacons and post-exploitation artifacts in network traffic and logs; (6) If equipment replacement is infeasible within acceptable risk window, temporarily air-gap internet-facing affected devices while maintaining internal accessibility for critical operations.

Threat Intelligence Overview

Threat Score
5.0/10
Composite threat intelligence
EPSS Score
0.0%
Top 98% exploitable
Prevalence
High
FortiGate/FortiOS is widely deployed enterprise firewall software
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV Yes
Public POC Yes
EPSS 0.0%
Patch available No
Active threat Yes
Deciding rule
CRITICAL + in CISA KEV (actively exploited), no patch available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Immediate
Exploitation· derived
Active
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

119
Low Medium High Critical
KEV: +50
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Affected Products (CPE)NVD

cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:a:fortinet:fortiswitchmanager:*:*:*:*:*:*:*:*
cpe:2.3:a:fortinet:fortiswitchmanager:*:*:*:*:*:*:*:*
cpe:2.3:a:fortinet:fortisase:25.1.39:*:*:*:-:*:*:*
cpe:2.3:a:fortinet:fortisase:25.1.51:*:*:*:-:*:*:*
CVE-2022-40684 CRITICAL POC
9.8 Oct 18

An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 an

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2024-21762 CRITICAL POC
9.8 Feb 09

A out-of-bounds write in Fortinet FortiOS versions 7.4.0 through 7.4.2, 7.2.0 through 7.2.6, 7.0.0 through 7.0.13, 6.4.0

CVE-2023-27997 CRITICAL
9.8 Jun 13

A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, versi

CVE-2020-12812 CRITICAL
9.8 Jul 24

FortiOS SSL-VPN contains an improper authentication vulnerability that allows users to bypass two-factor authentication

CVE-2016-1909 CRITICAL POC
9.8 Jan 15

Fortinet FortiAnalyzer before 5.0.12 and 5.2.x before 5.2.5; FortiSwitch 3.3.x before 3.3.3; FortiCache 3.0.x before 3.0

CVE-2016-6909 CRITICAL POC
9.8 Aug 24

Buffer overflow in the Cookie parser in Fortinet FortiOS 4.x before 4.1.11, 4.2.x before 4.2.13, and 4.3.x before 4.3.9

CVE-2025-61624 MEDIUM POC
6.5 Apr 14

Path traversal vulnerability in Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager allows authenticated admi

CVE-2015-1880 MEDIUM POC
4.3 May 12

Cross-site scripting (XSS) vulnerability in the sslvpn login page in Fortinet FortiOS 5.2.x before 5.2.3 allows remote a

CVE-2025-24472 HIGH
8.1 Feb 11

FortiOS and FortiProxy contain an authentication bypass allowing unauthenticated attackers with knowledge of upstream/do

CVE-2025-68686 MEDIUM POC
5.9 Feb 10

An Exposure of Sensitive Information to an Unauthorized Actor vulnerability [CWE-200] vulnerability in Fortinet FortiOS

CVE-2019-6693 MEDIUM
6.5 Nov 21

Use of a hard-coded cryptographic key to cipher sensitive data in FortiOS configuration backup file may allow an attacke

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy