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-2023-41913

CVE-2023-41913: strongSwan Buffer Overflow RCE Vulnerability

CVE-2023-41913 is a buffer overflow remote code execution vulnerability in strongSwan that enables unauthenticated attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-41913 Overview

CVE-2023-41913 is a buffer overflow vulnerability in strongSwan, an open-source IPsec-based VPN solution, that can lead to unauthenticated remote code execution. The vulnerability exists in the charon-tkm daemon's DH (Diffie-Hellman) proxy component, where a crafted DH public value that exceeds the internal buffer can trigger a buffer overflow condition. An attacker can exploit this vulnerability by sending a specially crafted IKE_SA_INIT message to vulnerable strongSwan installations.

Critical Impact

This vulnerability allows unauthenticated remote attackers to execute arbitrary code on affected strongSwan VPN servers by exploiting a buffer overflow in the DH proxy component via malicious IKE_SA_INIT messages.

Affected Products

  • strongSwan versions 5.3.0 through 5.9.11
  • strongSwan charon-tkm daemon component
  • Systems using the Trusted Platform Module (TPM) key manager with strongSwan

Discovery Timeline

  • 2023-12-07 - CVE CVE-2023-41913 published to NVD
  • 2025-12-18 - Last updated in NVD database

Technical Details for CVE-2023-41913

Vulnerability Analysis

The vulnerability resides in the charon-tkm component of strongSwan, which provides integration with the Trusted Platform Module (TPM) for key management operations. The charon-tkm daemon implements a proxy for Diffie-Hellman key exchange operations, forwarding DH parameters to the TKM (Trusted Key Manager) for cryptographic processing.

The buffer overflow occurs when processing DH public values received during the IKE (Internet Key Exchange) Security Association initialization phase. When a remote peer sends an IKE_SA_INIT message containing a DH public value larger than the internal buffer allocated in the DH proxy, the excess data overwrites adjacent memory. This classic buffer overflow condition can be leveraged by attackers to corrupt memory structures and potentially achieve arbitrary code execution.

Since the vulnerability can be triggered via network-accessible IKE_SA_INIT messages without requiring prior authentication, it presents a severe risk to internet-facing VPN gateways running the affected charon-tkm daemon.

Root Cause

The root cause is a classic buffer overflow (CWE-120) stemming from insufficient bounds checking when copying DH public values into a fixed-size internal buffer within the charon-tkm DH proxy implementation. The code fails to validate that incoming DH public values conform to the expected buffer size before copying data, allowing oversized values to overflow the allocated buffer space.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can target any strongSwan instance running charon-tkm that is reachable over the network (typically on UDP ports 500 and 4500 for IKE traffic). The attack sequence involves:

  1. Identifying a target running strongSwan with charon-tkm enabled
  2. Crafting a malicious IKE_SA_INIT message with an oversized DH public value
  3. Sending the crafted message to the target's IKE listening port
  4. The buffer overflow corrupts memory, potentially allowing code execution

The vulnerability affects strongSwan versions 5.3.0 through 5.9.11. The charon-tkm daemon is a specialized component used when strongSwan is configured to use TPM-based key management, so not all strongSwan deployments are vulnerable—only those specifically utilizing the TKM integration.

Detection Methods for CVE-2023-41913

Indicators of Compromise

  • Unexpected crashes or restarts of the charon-tkm daemon process
  • Anomalous IKE_SA_INIT messages with unusually large DH public value payloads in network traffic
  • Core dumps or memory corruption errors related to strongSwan processes
  • Suspicious outbound connections or processes spawned by charon-tkm

Detection Strategies

  • Monitor IKE traffic (UDP ports 500/4500) for abnormally large DH public value payloads exceeding expected key sizes
  • Implement intrusion detection rules to flag IKE_SA_INIT messages with oversized DH parameters
  • Enable strongSwan debug logging to capture detailed information about incoming IKE negotiations
  • Deploy network-based anomaly detection to identify unusual IKE traffic patterns

Monitoring Recommendations

  • Configure process monitoring to alert on unexpected charon-tkm daemon terminations
  • Implement log aggregation and analysis for strongSwan log files to detect exploitation attempts
  • Monitor system resources for signs of post-exploitation activity following IKE traffic anomalies
  • Establish baseline metrics for normal IKE traffic volume and message sizes to detect deviations

How to Mitigate CVE-2023-41913

Immediate Actions Required

  • Upgrade strongSwan to version 5.9.12 or later immediately on all affected systems
  • If immediate patching is not possible, consider temporarily disabling charon-tkm if TPM key management is not strictly required
  • Review network access controls to limit IKE traffic sources to trusted peers only
  • Implement network segmentation to reduce the attack surface of VPN gateway systems

Patch Information

strongSwan has released version 5.9.12 which addresses this buffer overflow vulnerability. Organizations should prioritize upgrading all strongSwan installations, particularly internet-facing VPN gateways running the charon-tkm component. Patch information and release notes are available through the official strongSwan blog post and the strongSwan GitHub releases page. Linux distributions including Debian and Fedora have also issued updated packages—refer to the Debian LTS Security Announcement and Fedora Package Announcement for distribution-specific updates.

Workarounds

  • Disable charon-tkm and use standard charon daemon if TPM key management is not required for your deployment
  • Implement strict firewall rules to allow IKE traffic only from known, trusted peer IP addresses
  • Deploy a Web Application Firewall (WAF) or IPS with rules to inspect and filter malformed IKE packets
  • Consider using VPN termination proxies that can filter traffic before it reaches strongSwan
bash
# Check installed strongSwan version
strongswan version

# For Debian/Ubuntu systems, upgrade to patched version
sudo apt update && sudo apt upgrade strongswan

# For Fedora/RHEL systems, upgrade to patched version
sudo dnf update strongswan

# Verify charon-tkm is not running if not needed
ps aux | grep charon-tkm

# Restrict IKE traffic to known peers via iptables (example)
sudo iptables -A INPUT -p udp --dport 500 -s <trusted_peer_ip> -j ACCEPT
sudo iptables -A INPUT -p udp --dport 500 -j DROP
sudo iptables -A INPUT -p udp --dport 4500 -s <trusted_peer_ip> -j ACCEPT
sudo 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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability5.32%

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

  • Fedora Package Announcement

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory NTAP-20250117-0003
  • Vendor Resources
  • StrongSwan CVE-2023-41913 Blog Post
  • Related CVEs
  • CVE-2021-41991: strongSwan Certificate Cache RCE Flaw

  • 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