Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2021-24012

CVE-2021-24012: Fortinet FortiOS Auth Bypass Vulnerability

CVE-2021-24012 is an authentication bypass flaw in Fortinet FortiOS that allows LDAP users to connect to SSLVPN with any trusted CA-signed certificate. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-24012 Overview

CVE-2021-24012 is an improper certificate chain of trust validation vulnerability affecting Fortinet FortiGate appliances running FortiOS versions 6.4.0 through 6.4.4. This security flaw allows an LDAP user to connect to SSLVPN using any certificate that is signed by a trusted Certificate Authority, bypassing proper certificate validation controls.

Critical Impact

This vulnerability enables unauthorized SSLVPN access by allowing LDAP users to authenticate with any certificate signed by a trusted CA, potentially bypassing intended access controls and enabling unauthorized network access.

Affected Products

  • Fortinet FortiOS versions 6.4.0 through 6.4.4
  • Fortinet FortiGate appliances running vulnerable FortiOS versions
  • SSLVPN deployments with LDAP authentication configured

Discovery Timeline

  • 2021-06-02 - CVE-2021-24012 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-24012

Vulnerability Analysis

This vulnerability is classified under CWE-295 (Improper Certificate Validation), which occurs when the software does not properly verify the certificate chain of trust. In the context of FortiGate's SSLVPN implementation, the certificate validation mechanism fails to properly verify that the presented client certificate matches the expected identity of the authenticating LDAP user.

The flaw allows authentication to succeed when an LDAP user presents any certificate signed by a Certificate Authority that FortiGate already trusts, regardless of whether that certificate was specifically issued for that user. This breaks the fundamental security assumption that client certificates provide strong identity verification in addition to LDAP authentication.

Root Cause

The root cause lies in the improper implementation of certificate chain validation logic within the FortiOS SSLVPN authentication module. When processing LDAP user authentication requests with client certificates, the system validates that the certificate is signed by a trusted CA but fails to verify that the certificate's subject or Subject Alternative Name (SAN) attributes correspond to the authenticating user. This allows any certificate from a trusted CA to satisfy the authentication requirement, effectively reducing two-factor authentication to single-factor authentication.

Attack Vector

The attack vector is network-based and requires no user interaction. An attacker with the following prerequisites can exploit this vulnerability:

  1. Valid LDAP credentials for the target FortiGate SSLVPN
  2. Any client certificate signed by a Certificate Authority trusted by the FortiGate appliance
  3. Network access to the SSLVPN endpoint

The attacker initiates an SSLVPN connection and presents their certificate during the TLS handshake. When prompted for LDAP authentication, they provide valid LDAP credentials. The FortiGate appliance incorrectly accepts the mismatched certificate because it only verifies the CA signature, not the certificate-to-user binding. This allows the attacker to bypass certificate-based access controls that may have been intended to restrict which certificates could authenticate specific users.

Detection Methods for CVE-2021-24012

Indicators of Compromise

  • Unusual SSLVPN authentication events where certificate Common Name (CN) or SAN does not match the authenticated LDAP username
  • Authentication logs showing successful SSLVPN connections with certificate serial numbers not issued to the connecting user
  • Multiple LDAP users authenticating with the same client certificate

Detection Strategies

  • Implement correlation rules in SIEM to flag SSLVPN authentications where certificate subject fields do not match LDAP user attributes
  • Monitor FortiGate authentication logs for certificate-based SSLVPN connections and cross-reference certificate details with user identity
  • Deploy network detection rules to identify anomalous TLS client certificate presentations during SSLVPN establishment

Monitoring Recommendations

  • Enable detailed logging for SSLVPN authentication events including full certificate chain information
  • Configure alerts for SSLVPN connections from unexpected certificate issuers or certificate serial numbers
  • Regularly audit the list of trusted Certificate Authorities configured on FortiGate appliances to minimize the attack surface

How to Mitigate CVE-2021-24012

Immediate Actions Required

  • Upgrade FortiOS to version 6.4.5 or later to address this vulnerability
  • Review all trusted Certificate Authority configurations and remove any unnecessary or overly permissive CA trust relationships
  • Audit SSLVPN authentication logs for any signs of exploitation prior to patching

Patch Information

Fortinet has released patches addressing this vulnerability in FortiOS versions 6.4.5 and later. Administrators should consult the FortiGuard Security Advisory FG-IR-21-018 for detailed upgrade instructions and affected version information. The patch corrects the certificate validation logic to properly verify that client certificates are bound to the authenticating user identity.

Workarounds

  • Temporarily disable client certificate authentication for SSLVPN if upgrading is not immediately possible
  • Implement additional network-layer access controls to restrict which systems can reach the SSLVPN endpoint
  • Consider using a dedicated Certificate Authority exclusively for SSLVPN client certificates to limit the scope of trusted certificates
bash
# Verify current FortiOS version
get system status

# Review trusted CA configuration
config vpn certificate ca
show

# Check SSLVPN authentication settings
config vpn ssl settings
show

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechFortinet Fortios

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-295
  • Vendor Resources
  • FortiGuard Security Advisory FG-IR-21-018
  • Related CVEs
  • CVE-2025-53847: Fortinet FortiOS Auth Bypass Vulnerability

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

  • CVE-2025-59718: Fortinet FortiProxy Auth Bypass Vulnerability

  • CVE-2020-12812: Fortinet FortiOS Auth Bypass 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