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-2025-62291

CVE-2025-62291: strongSwan Buffer Overflow Vulnerability

CVE-2025-62291 is a heap-based buffer overflow flaw in strongSwan's eap-mschapv2 plugin that allows malicious servers to exploit integer underflows. This post covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2025-62291 Overview

A critical vulnerability has been discovered in the EAP-MSCHAPv2 plugin (client-side) in strongSwan before version 6.0.3. This vulnerability allows a malicious EAP-MSCHAPv2 server to send a crafted message of size 6 through 8, causing an integer underflow that potentially results in a heap-based buffer overflow.

Critical Impact

Remote attackers operating malicious authentication servers can exploit this integer underflow to potentially achieve arbitrary code execution on vulnerable strongSwan VPN clients, compromising confidentiality, integrity, and availability of the affected system.

Affected Products

  • strongSwan versions prior to 6.0.3
  • Systems using the eap-mschapv2 plugin for client-side EAP authentication
  • VPN clients configured to authenticate via EAP-MSCHAPv2

Discovery Timeline

  • 2026-01-16 - CVE CVE-2025-62291 published to NVD
  • 2026-01-16 - Last updated in NVD database

Technical Details for CVE-2025-62291

Vulnerability Analysis

This vulnerability (CWE-191: Integer Underflow) exists in the client-side implementation of the eap-mschapv2 plugin within strongSwan. When processing EAP-MSCHAPv2 authentication messages from a server, the plugin fails to properly validate message length boundaries before performing arithmetic operations on the received size values.

A malicious EAP-MSCHAPv2 server can craft and send authentication messages with a size value between 6 and 8 bytes. When the plugin processes these messages, the improper handling of these small size values triggers an integer underflow during length calculation. This underflow causes a subsequent memory operation to reference an incorrect buffer size, leading to a heap-based buffer overflow condition.

The network-based attack vector means any strongSwan client configured to use EAP-MSCHAPv2 authentication is potentially vulnerable when connecting to untrusted or compromised authentication servers.

Root Cause

The root cause lies in insufficient bounds checking on the message length field received from the EAP-MSCHAPv2 server. When the plugin calculates buffer sizes for processing authentication response data, it subtracts a fixed header size from the received length value. With specially crafted messages of size 6-8 bytes, this subtraction results in an integer underflow, wrapping the value to a very large positive number and causing subsequent buffer operations to overflow allocated heap memory.

Attack Vector

The attack requires a man-in-the-middle position or control over a malicious authentication server. The attacker must be able to intercept or initiate an EAP-MSCHAPv2 authentication session with the vulnerable strongSwan client. The exploitation flow involves:

  1. The attacker establishes or intercepts a VPN connection where the client uses EAP-MSCHAPv2 authentication
  2. The malicious server sends a crafted EAP-MSCHAPv2 response message with a length field between 6 and 8 bytes
  3. The strongSwan client processes this message, triggering the integer underflow in length calculation
  4. The resulting heap buffer overflow can potentially be leveraged to corrupt memory and execute arbitrary code

The vulnerability is exploited through the VPN authentication protocol itself, requiring no user interaction beyond initiating a VPN connection to the malicious server.

Detection Methods for CVE-2025-62291

Indicators of Compromise

  • Unexpected strongSwan process crashes or core dumps during VPN connection attempts
  • Anomalous network traffic containing EAP-MSCHAPv2 messages with unusually small payload sizes (6-8 bytes)
  • Memory corruption errors or segmentation faults in strongSwan daemon logs
  • Suspicious outbound connections to unknown VPN servers

Detection Strategies

  • Monitor strongSwan daemon logs for authentication failures followed by process termination
  • Deploy network intrusion detection rules to identify malformed EAP-MSCHAPv2 packets with suspicious size values
  • Implement endpoint detection to alert on strongSwan process crashes or unexpected memory access patterns
  • Use SentinelOne's behavioral AI to detect anomalous process behavior following VPN connection events

Monitoring Recommendations

  • Enable verbose logging for the strongSwan daemon to capture detailed authentication events
  • Configure system monitoring to alert on abnormal memory usage by strongSwan processes
  • Implement network flow analysis to detect connections to unauthorized or suspicious VPN endpoints
  • Review authentication server certificates and configurations to ensure connections only occur to trusted infrastructure

How to Mitigate CVE-2025-62291

Immediate Actions Required

  • Upgrade strongSwan to version 6.0.3 or later immediately
  • Audit VPN configurations to ensure EAP-MSCHAPv2 is only used with trusted and verified authentication servers
  • Consider temporarily disabling EAP-MSCHAPv2 authentication in favor of alternative methods if patching is not immediately possible
  • Restrict VPN client configurations to connect only to known, trusted authentication infrastructure

Patch Information

The strongSwan project has addressed this vulnerability in version 6.0.3. Organizations should update their strongSwan installations immediately. Detailed patch information is available through the strongSwan GitHub Release Notes. The specific code changes addressing this vulnerability can be reviewed in the eap_mschapv2 commit history. Debian users should refer to the Debian LTS Security Announcement for distribution-specific updates.

Workarounds

  • Disable the eap-mschapv2 plugin if EAP-MSCHAPv2 authentication is not required for VPN operations
  • Configure network-level controls to restrict VPN connections only to pre-approved authentication servers
  • Implement certificate pinning or mutual TLS to ensure strongSwan clients only authenticate with trusted servers
  • Deploy network segmentation to limit exposure of VPN clients to potentially malicious authentication servers
bash
# Disable eap-mschapv2 plugin in strongSwan configuration
# Edit /etc/strongswan.conf or /etc/strongswan.d/charon.conf
charon {
    # Disable the vulnerable plugin
    load_modular = yes
    plugins {
        eap-mschapv2 {
            load = no
        }
    }
}

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechStrongswan

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-191
  • Technical References
  • GitHub Commit Log

  • GitHub Release Notes

  • StrongSwan CVE-2025-62291 Blog Post

  • Debian LTS Security Announcement
  • Related CVEs
  • CVE-2026-25075: strongSwan EAP-TTLS DOS Vulnerability

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

  • CVE-2023-41913: strongSwan Buffer Overflow RCE Vulnerability

  • CVE-2021-45079: strongSwan 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