CVE-2024-40766 — SonicWall SonicOS Improper Access Control Vulnerability

CVE-2024-40766

SonicWall SonicOS — Improper Access Control in Management Interface and SSLVPN; CVSS 9.8; Exploited by Fog and Akira Ransomware

What is SonicWall SonicOS?

SonicWall produces network security appliances (firewalls, VPN concentrators, and UTM devices) running SonicOS, deployed extensively in enterprise, SMB, and government networks. SonicOS powers the NGFW management interface and the SSLVPN remote access service, making it a high-value target: thousands of SonicWall appliances expose their SSLVPN interface directly to the internet to support remote workers. Ransomware groups have consistently prioritized SonicWall vulnerabilities because a compromised VPN gateway provides immediate internal network access without further lateral movement needed.

Overview

CVE-2024-40766 is an improper access control vulnerability (CWE-284) in SonicWall SonicOS affecting both the management interface and SSLVPN access. An unauthenticated remote attacker can exploit the access control weakness to gain unauthorized access to resources and, under certain conditions, crash the firewall. SonicWall confirmed active exploitation in the wild by September 6, 2024 — just two weeks after the patch was released — and CISA added it to the KEV catalog on September 9, 2024. Arctic Wolf subsequently documented exploitation by Fog and Akira ransomware groups using the vulnerability to gain initial VPN access and deploy ransomware on enterprise networks.

Affected Versions

Product / SonicOS Version Vulnerable Fixed
Gen 5 (SonicOS 5.9.x) 5.9.x 5.9.0.0-35HD or higher
Gen 6 (SonicOS 6.5.x) 6.5.x 6.5.0.0-22s or higher
Gen 7 (SonicOS 7.0.x) 7.0.1-5035 and earlier 7.0.1-5035 or newer
NSv (virtual) Various Refer to SonicWall advisory

Technical Details

The improper access control (CWE-284) affects the HTTP/HTTPS listener for both the SonicOS management interface (port 8443 by default) and the SSLVPN service (port 443). The vulnerability allows an unauthenticated attacker to access management functionality or VPN sessions that should require authentication.

Impact modes:

  • Unauthorized resource access: An attacker can access configuration endpoints, read sensitive device information, or potentially obtain credentials/session tokens that allow further access
  • Device crash: Under certain exploitation conditions the firewall process crashes, causing a denial of service that drops all network traffic — potentially used to disable security controls

Ransomware kill chain observed by Arctic Wolf:

  1. Attacker exploits CVE-2024-40766 to obtain VPN access without valid credentials
  2. Attacker establishes an SSLVPN session to the target's internal network
  3. From the internal foothold, deploys Fog or Akira ransomware to endpoints and servers
  4. Ransom demanded for decryption keys

Exploitation Context

SonicWall explicitly confirmed exploitation in wild in their updated September 6, 2024 advisory — rare for a vendor to do so this quickly. Arctic Wolf tracked multiple ransomware intrusions using CVE-2024-40766 as the initial access vector:

  • Fog ransomware: A ransomware group specializing in education and recreation sector targets
  • Akira ransomware: A prolific ransomware-as-a-service operation responsible for hundreds of enterprise compromises in 2023–2024

Both groups used the vulnerability to gain VPN access without needing stolen credentials, bypassing all credential-based defenses. SonicWall appliances that were not patched within the short window between disclosure (August 22) and confirmation of exploitation (September 6) were actively compromised.

Remediation

  1. Apply SonicOS firmware updates immediately per the SonicWall PSIRT advisory SNWLID-2024-0015. The CISA deadline was September 30, 2024.
  2. Disable SSLVPN management access from the internet if the device has management interface access enabled on the WAN interface — only allow management from trusted IP ranges.
  3. Enable multi-factor authentication for SSLVPN as a defense-in-depth measure against credential-based attacks.
  4. Review SSLVPN session logs for connections from unexpected source IP addresses or geographic locations during the August–September 2024 exposure window.
  5. Implement network segmentation so that VPN-connected hosts cannot freely reach critical internal servers — limit blast radius if VPN access is obtained by an attacker.
  6. Rotate VPN user credentials if exploitation is suspected.

Key Details

PropertyValue
CVE ID CVE-2024-40766
Vendor / Product SonicWall — SonicOS
NVD Published2024-08-23
NVD Last Modified2025-10-31
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-284 find similar ↗
CISA KEV Added2024-09-09
CISA KEV Deadline2024-09-30
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2024-09-30. Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Timeline

DateEvent
2024-08-22SonicWall publishes SNWLID-2024-0015 and releases patched SonicOS firmware
2024-08-23CVE published
2024-09-06SonicWall updates advisory confirming active exploitation in the wild
2024-09-09CISA adds to KEV catalog
2024-09-30CISA BOD 22-01 remediation deadline