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

CVE-2021-41991: strongSwan Certificate Cache RCE Flaw

CVE-2021-41991 is a remote code execution vulnerability in strongSwan's certificate cache that allows integer overflow attacks. This post covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2021-41991 Overview

CVE-2021-41991 is an integer overflow vulnerability in the in-memory certificate cache of strongSwan, an open-source IPsec-based VPN solution. The vulnerability exists in versions prior to 5.9.4 and can be triggered remotely by sending many requests with different certificates to fill the cache, subsequently triggering the replacement of cache entries. The code attempts to select a less-often-used cache entry using a random number generator, but this mechanism is not implemented correctly, leading to the integer overflow condition. While the primary impact is denial of service, remote code execution is considered a slight possibility.

Critical Impact

Remote attackers can trigger an integer overflow in strongSwan's certificate cache, potentially causing denial of service across VPN infrastructure and industrial control systems. This affects numerous Siemens industrial products using strongSwan for secure communications.

Affected Products

  • strongSwan versions prior to 5.9.4
  • Debian Linux versions 9.0, 10.0, and 11.0
  • Fedora versions 33, 34, and 35
  • Siemens SINEMA Remote Connect Server
  • Siemens SCALANCE SC-600 family devices (SC622-2C, SC632-2C, SC636-2C, SC642-2C, SC646-2C)
  • Siemens SIMATIC CP series (CP 1243-1, CP 1242-7 GPRS V2, CP 1543-1, CP 1543SP-1, CP 1542SP-1)
  • Siemens SIPLUS S7-1200 CP 1243-1 series
  • Siemens SIPLUS ET 200SP CP series

Discovery Timeline

  • October 18, 2021 - CVE-2021-41991 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-41991

Vulnerability Analysis

The vulnerability resides in strongSwan's in-memory certificate cache mechanism, which is designed to store and manage X.509 certificates for IKE (Internet Key Exchange) authentication during IPsec VPN negotiations. When the cache reaches capacity and needs to replace entries, the code attempts to identify less frequently used cache entries for eviction using a random number generator. However, the implementation contains a flaw in the integer arithmetic used during this selection process.

When an attacker sends a large number of authentication requests using different certificates, the cache fills up and triggers the replacement logic. The integer overflow occurs during the calculation related to cache entry selection, which can corrupt memory management and lead to unexpected behavior. The attack is classified under CWE-190 (Integer Overflow or Wraparound), reflecting the core issue of improper handling of integer boundaries.

This vulnerability is particularly concerning for industrial environments, as evidenced by the extensive list of affected Siemens industrial control products that incorporate strongSwan for secure VPN communications. Compromise of these systems could impact operational technology (OT) networks.

Root Cause

The root cause is improper integer handling in the certificate cache eviction algorithm. When calculating which cache entry to replace, the code performs arithmetic operations that can overflow when processing a large number of certificate requests. The random number generator used to select less-frequently-used entries does not properly account for integer boundary conditions, causing the overflow to manifest when the cache is under heavy load from diverse certificate submissions.

Attack Vector

The attack can be executed remotely over the network without requiring authentication. An attacker sends numerous IKE authentication requests, each containing a different certificate, to a strongSwan server. This process fills the certificate cache to capacity. Once the cache is full, subsequent certificate submissions trigger the cache replacement algorithm where the integer overflow occurs.

The attack flow involves:

  1. Attacker establishes multiple IKE sessions with the target strongSwan server
  2. Each session presents a unique certificate for authentication
  3. The certificate cache fills and initiates entry replacement
  4. The flawed random selection algorithm triggers an integer overflow
  5. The overflow leads to denial of service, with a slight possibility of remote code execution

Detection Methods for CVE-2021-41991

Indicators of Compromise

  • Unusual spikes in IKE authentication requests from single or distributed sources
  • High volume of certificate validation failures in strongSwan logs
  • Service crashes or restarts of the strongSwan daemon (charon or starter)
  • Memory corruption symptoms in IKE daemon processes
  • Abnormal resource consumption by strongSwan-related processes

Detection Strategies

  • Monitor strongSwan logs for excessive certificate processing events and authentication anomalies
  • Implement network-based detection for abnormally high volumes of IKE_SA_INIT or IKE_AUTH exchanges
  • Deploy intrusion detection signatures targeting rapid certificate submission patterns
  • Configure system monitoring to detect unexpected strongSwan daemon restarts or crashes
  • Use memory integrity monitoring tools to detect heap corruption in IKE processes

Monitoring Recommendations

  • Enable detailed logging in strongSwan configuration to capture certificate cache operations
  • Implement centralized log collection for strongSwan instances to correlate attack patterns across infrastructure
  • Set up alerting thresholds for IKE authentication failures and certificate processing rates
  • Monitor Siemens industrial devices running affected firmware for connectivity disruptions
  • Review IKE traffic patterns at network boundaries for signs of cache-flooding attacks

How to Mitigate CVE-2021-41991

Immediate Actions Required

  • Upgrade strongSwan to version 5.9.4 or later immediately
  • Apply security updates from Debian (DSA-4989) and Fedora for affected distributions
  • Review and apply Siemens firmware updates for affected SCALANCE, SIMATIC, and SIPLUS devices as per SSA-539476
  • Implement network segmentation to limit exposure of VPN endpoints to untrusted networks
  • Enable rate limiting for IKE authentication requests where possible

Patch Information

The vulnerability is fixed in strongSwan version 5.9.4. The patch addresses the integer overflow in the certificate cache replacement algorithm by implementing proper bounds checking. Organizations should apply the following updates based on their environment:

  • strongSwan: Upgrade to version 5.9.4 or later via the official GitHub release
  • Debian: Apply updates as described in DSA-4989 and the Debian LTS announcement
  • Fedora: Apply package updates announced via Fedora mailing lists for versions 33, 34, and 35
  • Siemens Products: Follow guidance in the Siemens Security Advisory SSA-539476 for firmware updates

Workarounds

  • Restrict network access to strongSwan VPN endpoints using firewall rules to limit exposure to trusted IP ranges
  • Implement connection rate limiting at the network perimeter to slow down cache-flooding attempts
  • Consider deploying additional authentication mechanisms before IKE establishment where architecturally feasible
  • For Siemens industrial products, isolate affected devices in segmented network zones until firmware updates can be applied
  • Monitor affected systems closely with enhanced logging until patches are deployed
bash
# Verify strongSwan version after patching
ipsec version

# Example: Restrict IKE traffic to trusted networks using iptables
iptables -A INPUT -p udp --dport 500 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p udp --dport 4500 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p udp --dport 500 -j DROP
iptables -A INPUT -p udp --dport 4500 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechStrongswan

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability2.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Release StrongSwan 5.9.4

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Debian Security Advisory DSA-4989

  • StrongSwan Blog Post CVE-2021-41991
  • Vendor Resources
  • Siemens Security Advisory SSA-539476
  • Related CVEs
  • CVE-2023-41913: strongSwan Buffer Overflow RCE Vulnerability

  • CVE-2026-25075: strongSwan EAP-TTLS DOS Vulnerability

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

  • CVE-2025-62291: strongSwan Buffer Overflow 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