The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2024-40765

CVE-2024-40765: SonicOS IPSec RCE Vulnerability

CVE-2024-40765 is an integer-based buffer overflow in SonicOS IPSec that enables remote code execution via crafted IKEv2 payloads. This article covers the technical details, affected systems, and mitigation strategies.

Updated: May 15, 2026

CVE-2024-40765 Overview

CVE-2024-40765 is an integer-based buffer overflow vulnerability in SonicWall SonicOS affecting the IPSec implementation. A remote unauthenticated attacker can trigger the flaw by sending a specially crafted Internet Key Exchange version 2 (IKEv2) payload. Successful exploitation causes Denial of Service (DoS) and may allow arbitrary code execution under specific conditions. The vulnerability is classified under [CWE-190] (Integer Overflow or Wraparound) and impacts SonicOS firewall appliances exposing IKEv2 services. SonicWall published advisory SNWLID-2024-0013 to address the issue. Given that affected devices are typically internet-facing perimeter firewalls, exposure to opportunistic scanning and exploitation attempts is high.

Critical Impact

Remote unauthenticated attackers can crash SonicOS firewalls or potentially execute arbitrary code, compromising perimeter defenses and enabling lateral movement into internal networks.

Affected Products

  • SonicWall SonicOS (IPSec/IKEv2 component)
  • SonicWall firewall appliances with IPSec VPN enabled
  • Refer to SNWLID-2024-0013 for the complete list of affected firmware versions

Discovery Timeline

  • 2025-01-09 - CVE-2024-40765 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2024-40765

Vulnerability Analysis

The vulnerability resides in the IKEv2 payload parsing logic within the SonicOS IPSec subsystem. IKEv2 is the protocol used to negotiate Security Associations for IPSec VPN tunnels. SonicOS processes attacker-supplied IKEv2 payloads during the negotiation phase before authentication completes, which makes the code path reachable by any remote host that can deliver UDP packets to the IKE listener.

An integer overflow during size calculation produces an undersized buffer allocation. Subsequent copy operations then write beyond the allocated region, corrupting adjacent heap memory. The immediate consequence is a process crash that takes the firewall offline. Depending on heap layout and memory protections, the corruption may also be steered toward arbitrary code execution.

With an EPSS score of 2.176% (84th percentile), this vulnerability sits in the upper band of expected near-term exploitation activity.

Root Cause

The defect is an integer overflow during length or count arithmetic on a value derived from the inbound IKEv2 payload header. When the computed size wraps around, the resulting allocation is far smaller than the data the parser then writes into it. This is a textbook [CWE-190] pattern in network protocol parsers that trust attacker-controlled length fields without bounds validation.

Attack Vector

Exploitation requires only network reachability to UDP ports 500 and 4500, the standard IKE and IKE-NAT-T ports. No credentials, user interaction, or pre-existing VPN tunnel is required. The attacker crafts a malformed IKEv2 packet with field values designed to trigger the integer wrap, then delivers it to the firewall's WAN interface. A single packet can crash the device; reliable code execution would require additional heap shaping primitives.

No public proof-of-concept code is currently available. Technical specifics are not disclosed in the vendor advisory.

Detection Methods for CVE-2024-40765

Indicators of Compromise

  • Unexpected SonicOS reboots, crashes, or IPSec service restarts coinciding with inbound IKE traffic
  • Malformed IKEv2 packets from untrusted sources on UDP/500 or UDP/4500
  • Loss of VPN tunnel connectivity without corresponding configuration changes
  • Anomalous outbound connections from the firewall management plane following an IKE crash event

Detection Strategies

  • Monitor SonicOS system logs for repeated IPSec process failures, kernel panics, or unexpected reboot messages
  • Deploy network intrusion detection signatures that flag oversized or malformed IKEv2 SA_INIT payloads
  • Correlate firewall availability alerts with packet captures of inbound IKE traffic to identify the trigger source
  • Track source IPs sending high volumes of IKE traffic to firewall WAN interfaces from outside expected VPN peer ranges

Monitoring Recommendations

  • Forward SonicOS syslog to a centralized SIEM and alert on IPSec or IKE daemon termination events
  • Capture full packet metadata for UDP/500 and UDP/4500 traffic to support post-incident analysis
  • Baseline normal IKE peer IP addresses and alert on negotiation attempts from unknown sources
  • Monitor firewall CPU, memory, and uptime metrics for sudden discontinuities indicative of crash-restart cycles

How to Mitigate CVE-2024-40765

Immediate Actions Required

  • Apply the SonicOS firmware update referenced in SonicWall Advisory SNWLID-2024-0013 as the primary remediation
  • Inventory all SonicWall appliances and confirm firmware versions against the vendor's fixed-release list
  • Restrict IKE/IPSec exposure on internet-facing interfaces to known VPN peer IP addresses where operationally feasible
  • Review firewall logs for prior crash events that may indicate exploitation attempts

Patch Information

SonicWall has released fixed SonicOS firmware versions documented in advisory SNWLID-2024-0013. Administrators should consult the SonicWall PSIRT advisory for version-specific upgrade paths and apply patches through the standard SonicOS firmware update process. Schedule maintenance windows and validate failover/HA configurations before upgrade.

Workarounds

  • Disable IPSec VPN services on affected appliances if patching cannot be performed immediately and the service is not required
  • Apply access control lists to limit UDP/500 and UDP/4500 traffic to known VPN peer addresses
  • Place upstream filtering devices in front of the firewall to drop malformed IKEv2 traffic
  • Enable High Availability pairs to reduce outage impact from DoS-triggered crashes during the patching window
bash
# Example: restrict IKE traffic to known VPN peers using an upstream ACL
# Replace peer IPs with your authorized VPN endpoints
access-list IKE_FILTER permit udp host 203.0.113.10 any eq 500
access-list IKE_FILTER permit udp host 203.0.113.10 any eq 4500
access-list IKE_FILTER deny   udp any any eq 500
access-list IKE_FILTER deny   udp any any eq 4500
access-list IKE_FILTER permit ip any any

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSonicos

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability2.18%

  • 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-190
  • Technical References
  • SonicWall Vulnerability Advisory SNWLID-2024-0013
  • Related CVEs
  • CVE-2026-0206: SonicOS Buffer Overflow Vulnerability

  • CVE-2026-0205: SonicOS Path Traversal Vulnerability

  • CVE-2026-0204: SonicOS Auth Bypass Vulnerability

  • CVE-2020-5135: SonicWall SonicOS 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