The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-40591

CVE-2024-40591: Fortinet FortiOS Privilege Escalation Flaw

CVE-2024-40591 is a privilege escalation vulnerability in Fortinet FortiOS allowing authenticated admins to gain super-admin rights via malicious upstream FortiGate. This article covers technical details, affected versions, and mitigations.

Published: January 28, 2026

CVE-2024-40591 Overview

CVE-2024-40591 is an incorrect privilege assignment vulnerability (CWE-266) affecting Fortinet FortiOS, the operating system powering FortiGate next-generation firewalls. This vulnerability allows an authenticated administrator with Security Fabric permissions to escalate their privileges to super-admin by connecting the targeted FortiGate device to a malicious upstream FortiGate under their control.

Critical Impact

Authenticated administrators can escalate to super-admin privileges through a malicious Security Fabric connection, potentially gaining complete control over the FortiGate appliance and compromising network security infrastructure.

Affected Products

  • Fortinet FortiOS version 7.6.0
  • Fortinet FortiOS versions 7.4.0 through 7.4.4
  • Fortinet FortiOS versions 7.2.0 through 7.2.9
  • Fortinet FortiOS versions before 7.0.15

Discovery Timeline

  • 2025-02-11 - CVE-2024-40591 published to NVD
  • 2025-07-17 - Last updated in NVD database

Technical Details for CVE-2024-40591

Vulnerability Analysis

This vulnerability resides in FortiOS's Security Fabric feature, which enables centralized management and communication between multiple Fortinet devices in an enterprise network. The flaw stems from improper privilege validation during the Security Fabric connection establishment process.

When a FortiGate device connects to an upstream FortiGate within the Security Fabric hierarchy, the system fails to adequately verify and restrict the privilege inheritance mechanism. An attacker who already possesses administrative access with Security Fabric permissions can exploit this weakness by configuring the target FortiGate to connect to a rogue FortiGate device under their control.

The attack requires network access and existing administrative credentials, but does not require user interaction. Upon successful exploitation, the attacker can achieve complete administrative control with super-admin privileges, allowing them to modify firewall rules, access sensitive configuration data, intercept network traffic, and potentially compromise the entire security infrastructure.

Root Cause

The root cause of CVE-2024-40591 is an incorrect privilege assignment (CWE-266) in the Security Fabric trust relationship mechanism. When processing upstream FortiGate connections, FortiOS does not properly validate whether the connecting administrator should inherit elevated privileges from the upstream device. This allows a lower-privileged administrator to leverage the trust relationship to gain unauthorized super-admin access.

Attack Vector

The attack is conducted over the network and requires the following conditions:

  1. The attacker must have valid administrative credentials with Security Fabric permissions on the target FortiGate
  2. The attacker must control a separate FortiGate device (or emulate one) that can act as a malicious upstream device
  3. The attacker configures the target FortiGate to join a Security Fabric with the attacker-controlled device as the upstream root
  4. Upon establishing the Security Fabric connection, the attacker's privileges are escalated to super-admin on the target device

The vulnerability exploits the implicit trust within Security Fabric connections, where downstream devices accept privilege configurations from upstream devices without adequate verification.

Detection Methods for CVE-2024-40591

Indicators of Compromise

  • Unexpected Security Fabric topology changes or new upstream FortiGate connections
  • Administrator accounts suddenly gaining super-admin privileges without authorized changes
  • Configuration modifications to Security Fabric settings from non-super-admin accounts
  • Log entries indicating Security Fabric connection attempts to unfamiliar or unauthorized upstream devices

Detection Strategies

  • Monitor FortiGate audit logs for Security Fabric configuration changes, particularly set upstream commands
  • Alert on privilege elevation events where administrators gain super-admin access
  • Implement network monitoring to detect FortiGate-to-FortiGate communication with unauthorized IP addresses
  • Review Security Fabric topology regularly to identify rogue or unauthorized upstream devices

Monitoring Recommendations

  • Enable comprehensive logging for all administrative actions and Security Fabric events
  • Configure SIEM rules to correlate Security Fabric connection events with subsequent privilege changes
  • Establish baseline Security Fabric topologies and alert on deviations
  • Monitor for outbound connections from FortiGate management interfaces to unknown destinations

How to Mitigate CVE-2024-40591

Immediate Actions Required

  • Upgrade FortiOS to patched versions: 7.6.1 or later, 7.4.5 or later, 7.2.10 or later, or 7.0.16 or later
  • Review and restrict which administrators have Security Fabric permissions
  • Audit current Security Fabric configurations to ensure only authorized upstream devices are configured
  • Implement strict network segmentation for FortiGate management interfaces

Patch Information

Fortinet has released security updates to address this vulnerability. Organizations should review the official Fortinet Security Advisory FG-IR-24-302 for detailed patch information and upgrade to the recommended FortiOS versions. The advisory provides specific version requirements for each affected branch.

Workarounds

  • Restrict Security Fabric permissions to only essential personnel with verified need
  • Implement network access controls to prevent FortiGate devices from connecting to unauthorized upstream devices
  • Configure firewall rules to limit management plane communication to known, trusted FortiGate devices only
  • Consider temporarily disabling Security Fabric functionality if not actively required until patches can be applied

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechFortinet Fortios

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-266
  • Vendor Resources
  • Fortinet Security Advisory FG-IR-24-302
  • Related CVEs
  • CVE-2025-24477: Fortinet FortiOS Privilege Escalation Flaw

  • CVE-2025-25249: Fortinet FortiOS Buffer Overflow Flaw

  • CVE-2026-22153: Fortinet FortiOS Auth Bypass Vulnerability

  • CVE-2025-64157: Fortinet FortiOS RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English