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-45079

CVE-2021-45079: strongSwan Auth Bypass Vulnerability

CVE-2021-45079 is an authentication bypass flaw in strongSwan that allows malicious responders to send premature EAP-Success messages. This article covers technical details, affected versions, and mitigations.

Published: February 25, 2026

CVE-2021-45079 Overview

CVE-2021-45079 is a critical authentication bypass vulnerability in strongSwan, the widely-deployed open-source IPsec-based VPN solution. The vulnerability allows a malicious responder to send an EAP-Success message prematurely without actually authenticating the client. In scenarios involving EAP methods with mutual authentication and EAP-only authentication for IKEv2, this flaw enables exploitation without even requiring server authentication, potentially allowing attackers to completely bypass VPN authentication mechanisms.

Critical Impact

A malicious responder can bypass client and potentially server authentication in strongSwan VPN connections, enabling unauthorized access to protected network resources and man-in-the-middle attacks against VPN traffic.

Affected Products

  • strongSwan versions before 5.9.5
  • Debian Linux 9.0, 10.0, and 11.0
  • Fedora 34 and 35
  • Fedora Extra Packages for Enterprise Linux (EPEL) 7.0, 8.0, and 9.0
  • Ubuntu Linux 14.04 ESM, 16.04 ESM, 18.04 LTS, 20.04 LTS, and 21.10

Discovery Timeline

  • 2022-01-31 - CVE-2021-45079 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-45079

Vulnerability Analysis

This vulnerability exists in strongSwan's EAP (Extensible Authentication Protocol) implementation within the IKEv2 protocol stack. The flaw stems from improper validation of EAP message sequences during VPN tunnel establishment. When a client initiates an IKEv2 connection using EAP authentication, the protocol expects a specific sequence of authentication messages before granting access. However, strongSwan fails to properly verify that the complete authentication handshake has occurred before accepting an EAP-Success message from the responder.

The vulnerability is particularly dangerous in EAP-only authentication scenarios (RFC 5998), where the EAP exchange is the sole authentication mechanism. An attacker operating as a malicious VPN responder can exploit this by sending a premature EAP-Success message, tricking the client into believing authentication has succeeded when no actual credential verification has occurred.

Root Cause

The root cause is classified as CWE-476 (NULL Pointer Dereference), indicating that the vulnerability involves improper handling of authentication state within strongSwan's EAP processing logic. The authentication state machine does not properly validate that all required authentication steps have been completed before transitioning to an authenticated state. This allows a malicious peer to bypass authentication checks by sending out-of-sequence protocol messages.

Attack Vector

The attack requires network access to intercept or respond to IKEv2/EAP connection attempts. An attacker can position themselves as a malicious VPN responder through various means:

  1. Rogue VPN Server: Setting up a malicious VPN endpoint that masquerades as a legitimate server
  2. Man-in-the-Middle Position: Intercepting VPN connection attempts and responding with the malicious authentication bypass sequence
  3. DNS Hijacking: Redirecting VPN connection attempts to an attacker-controlled server

The attack exploits the IKEv2/EAP handshake by:

  • Intercepting or initiating an IKEv2 connection with a vulnerable strongSwan client
  • Sending a premature EAP-Success message before completing the authentication exchange
  • The client erroneously accepts this as successful authentication
  • The attacker gains unauthorized access to protected network resources or can intercept VPN traffic

For technical details on the specific protocol sequences involved, refer to the strongSwan Blog Vulnerability Analysis.

Detection Methods for CVE-2021-45079

Indicators of Compromise

  • Unexpected EAP-Success messages received before completion of EAP method exchange
  • VPN connections established with incomplete authentication handshakes visible in strongSwan logs
  • Anomalous IKEv2 message sequences where EAP-Success precedes expected EAP method messages
  • Connections from untrusted or unexpected VPN responder IP addresses

Detection Strategies

  • Monitor strongSwan logs for authentication anomalies, particularly EAP session establishments that lack expected method-specific messages
  • Implement network intrusion detection rules to identify premature EAP-Success messages in IKEv2 traffic
  • Deploy endpoint detection solutions to identify unauthorized VPN tunnel establishments
  • Compare strongSwan installation versions against known vulnerable versions (prior to 5.9.5)

Monitoring Recommendations

  • Enable verbose logging for strongSwan EAP authentication events to capture detailed handshake sequences
  • Implement centralized log aggregation for all VPN endpoints to correlate suspicious authentication patterns
  • Configure alerts for VPN connections that deviate from expected EAP method behavior
  • Regularly audit connected VPN peers against an allowlist of authorized responders

How to Mitigate CVE-2021-45079

Immediate Actions Required

  • Upgrade strongSwan to version 5.9.5 or later immediately on all affected systems
  • Review all existing VPN connections for potential compromise if running vulnerable versions
  • Verify the authenticity of VPN responder certificates and configurations
  • Consider temporarily disabling EAP-only authentication until patched

Patch Information

The strongSwan project has addressed this vulnerability in version 5.9.5. Administrators should apply the appropriate patches for their distribution:

  • Debian: Security updates are available through the Debian security repository for affected versions (9.0, 10.0, 11.0)
  • Ubuntu: Canonical has released security updates for Ubuntu 14.04 ESM, 16.04 ESM, 18.04 LTS, 20.04 LTS, and 21.10
  • Fedora/EPEL: Updates are available through standard Fedora repositories for Fedora 34, 35, and EPEL 7, 8, 9

For detailed information about the patch and its implementation, see the strongSwan Blog Vulnerability Analysis.

Workarounds

  • If immediate patching is not possible, disable EAP-only authentication (eap_only = no in strongSwan configuration)
  • Require certificate-based authentication in addition to EAP methods for mutual authentication
  • Implement strict network segmentation to limit exposure of vulnerable VPN endpoints
  • Deploy network monitoring to detect and block suspicious IKEv2/EAP traffic patterns
bash
# Configuration example - Disable EAP-only authentication as a workaround
# In /etc/strongswan.conf or relevant configuration file:

charon {
    # Disable EAP-only authentication to mitigate CVE-2021-45079
    eap_only = no
    
    # Require server certificate validation
    signature_authentication = yes
    signature_authentication_constraints = yes
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechStrongswan

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • StrongSwan Blog Vulnerability Analysis
  • Related CVEs
  • CVE-2026-25075: strongSwan EAP-TTLS DOS Vulnerability

  • CVE-2026-25998: strongMan VPN Info Disclosure Flaw

  • CVE-2025-62291: strongSwan Buffer Overflow Vulnerability

  • CVE-2023-41913: strongSwan Buffer Overflow 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