Cloudanix VulnDB

CVE-2024-40766

None CISA KEV · ransomware

CVSS

—

EPSS

18.4%

Published

Aug 23, 2024

CISA due date

Sep 30, 2024

Cloudanix analysis

Act now SSVC: Act

Attackers are actively abusing a flaw in some SonicWall firewalls that can let them reach protected functions or crash the device, creating a serious risk of network intrusion or outage.

Active In The Wild Chainable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Other
Component
Firmware
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

CVE-2024-40766 is an improper access control flaw in SonicWall SonicOS management access affecting SonicWall Firewall Gen 5 and Gen 6 devices, and Gen 7 devices running affected SonicOS 7.0.1-5035-and-older builds as described in the advisory. A remote attacker who can reach the management interface or related exposed service may be able to access protected resources without proper authorization. Under specific conditions, exploitation can also destabilize the firewall and cause a crash, creating a denial-of-service condition on an edge security device.

Why it matters to the business

Because this affects perimeter firewalls, successful exploitation can expose administrative or sensitive firewall resources, interrupt network connectivity, weaken segmentation controls, and create an entry point for broader intrusion. The issue is in CISA KEV, has active in-the-wild exploitation, is associated with ransomware activity, and had a CISA remediation deadline of 2024-09-30, so unpatched exposed devices should be treated as high-priority incident-risk assets rather than routine patch backlog. Compromise or outage of these devices can disrupt VPN access, branch connectivity, internet egress, and security monitoring visibility.

How an attack unfolds

An attacker first identifies SonicWall firewalls with externally reachable management or VPN-adjacent access and fingerprints the SonicOS generation/version. They then send crafted requests that exercise the flawed access-control path, allowing access to resources that should require authorization or causing the device to crash in vulnerable conditions. If unauthorized access is achieved, the attacker may enumerate configuration data, identify valid users, modify access paths, or use the firewall as a staging point for credential theft and internal movement. In observed threat context, ransomware-focused campaigns targeting edge and virtualization infrastructure prioritize these devices because they are internet-facing, trusted by internal networks, and often provide VPN or administrative paths into the environment.

How to fix it

Upgrade affected SonicWall firewalls to the vendor-recommended fixed SonicOS release for the exact hardware generation and branch. Treat all SonicWall Firewall Gen 5, Gen 6, and Gen 7 devices running affected SonicOS 7.0.1-5035-and-older builds as requiring urgent review. Disable public internet exposure of SonicOS management wherever possible, restrict management access to dedicated administrative networks or trusted IP allowlists, enforce MFA for administrative and VPN access, and remove unused local accounts. After patching, rotate passwords and API/admin credentials, invalidate active sessions, review administrative accounts and VPN users, and inspect configuration changes. The supplied Android Settings package fixed-version entries do not align with this SonicWall vulnerability and should not be used as the remediation basis for SonicWall assets; validate scanner mappings against the SonicWall advisory and installed SonicOS versions.

How to confirm the fix worked

Confirm each firewall model, generation, and SonicOS build from the device UI, CLI, centralized management platform, or asset inventory and compare it against SonicWall's fixed-release guidance. Verify that WAN-side management is disabled or restricted, SSLVPN and management portals are not unnecessarily exposed, MFA is enforced, and local administrative accounts are expected. Run an external exposure check from outside the network to confirm management interfaces are not reachable from the public internet except from approved sources. After upgrading, confirm the active firmware version, review boot logs for a clean upgrade, and validate that security services, VPN, routing, and policy enforcement operate normally.

Typical attack path

  1. Scan the internet for SonicWall firewall management or SSLVPN portals exposed to untrusted networks.
  2. Fingerprint SonicOS generation and version to identify vulnerable Gen 5, Gen 6, or affected Gen 7 systems.
  3. Send crafted requests to the management access surface to bypass improper authorization checks or trigger instability.
  4. Access protected firewall resources, enumerate configuration or user-related information, or cause firewall crash/reboot behavior.
  5. Use obtained access or visibility to attempt VPN access, credential attacks, configuration tampering, persistence, or lateral movement.
  6. In ransomware campaigns, use the edge-device foothold to move into internal systems, disable defenses, stage tooling, and deploy extortion or encryption payloads.

How to detect it

Review SonicWall firewall system logs, audit logs, administrator activity logs, authentication logs, SSLVPN logs, firmware/boot logs, and centralized management logs for suspicious activity before and after the patch window. Focus on unexpected management access from internet IPs, successful or failed administrator logins from unusual geographies or autonomous systems, repeated requests to SonicOS management paths, newly created or modified administrator and VPN users, configuration exports, policy or NAT changes, disabled logging, unexpected firmware reboots/crashes, and SSLVPN logins using local accounts. Correlate with upstream firewall, reverse proxy, NetFlow, EDR, DNS, and identity-provider logs to determine whether any suspicious firewall access was followed by internal scanning, credential use, remote management activity, file staging, or ransomware tooling. In ransomware-related investigations, pay particular attention to activity involving edge-device access followed by VPN authentication, privileged account use, backup-system access, virtualization management access, and mass file access.

  • SonicOS
  • SSLVPN
  • Virtual Office
  • Administrator login
  • Admin login
  • Login failed
  • User login failed
  • Invalid username or password
  • configuration exported
  • Configuration changed
  • Settings changed
  • User added
  • User deleted
  • Administrator added
  • Admin password changed
  • Firmware uploaded
  • Firmware updated
  • System reboot
  • System Restart
  • The firewall has been rebooted
  • unexpected reboot
  • crash
  • watchdog
  • /sonicui/7/login
  • /sonicui/7/
  • /cgi-bin/
  • /api/sonicos/
  • WAN management
  • management login
  • SSLVPN login successful
  • SSLVPN login failed

What your security team should do

  • Immediately identify all SonicWall firewalls exposed to the internet and prioritize patching or isolation of any vulnerable Gen 5, Gen 6, or affected Gen 7 SonicOS builds.
  • Because the vulnerability is in KEV and associated with ransomware activity, treat vulnerable internet-facing devices as potentially compromised until logs and configuration are reviewed.
  • Disable or tightly restrict WAN management access; allow administration only from trusted management networks or approved jump hosts.
  • Rotate firewall administrator passwords, API keys, local VPN user credentials, and any shared secrets that may have been exposed; invalidate active sessions after rotation.
  • Review firewall configuration for unauthorized admin users, VPN users, access rules, NAT changes, route changes, disabled logging, and altered security-service settings.
  • Collect and preserve SonicWall system, audit, administrator, authentication, VPN, and crash/reboot logs before log rollover occurs.
  • Correlate firewall events with identity, VPN, endpoint, and network telemetry for signs of follow-on access or ransomware staging.
  • Resolve data-quality mismatches in vulnerability scanners where this CVE is incorrectly mapped to unrelated products or package versions.

The record

An improper access control vulnerability has been identified in the SonicWall SonicOS management access, potentially leading to unauthorized resource access and in specific conditions, causing the firewall to crash. This issue affects SonicWall Firewall Gen 5 and Gen 6 devices, as well as Gen 7 devices running SonicOS 7.0.1-5035 and older versions.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities