CVE-2024-40766: Improper Access Control in SonicWall SonicOS Management and SSL VPN
- Vendor
- Sonicwall
CVE-2024-40766 is an improper access control vulnerability in the management access and SSL VPN functionality of SonicWall SonicOS. It affects specified Generation 5 and Generation 6 firewalls and Generation 7 firewalls running SonicOS 7.0.1-5035 or earlier. A remote attacker can obtain unauthorized access to resources and, under certain conditions, cause the firewall to crash. Exploitation can compromise confidentiality and integrity, bypass security policies, and disrupt availability. The vulnerability has been exploited for initial access in ransomware operations, including activity associated with Akira and SafePay. Detailed vulnerable functions and triggering request structures are not publicly established in the available information.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can expose protected resources and potentially allow unauthorized viewing, modification, or deletion of data. A firewall crash can cause denial of service and interrupt connectivity or security services. Unauthorized SSL VPN access can provide a foothold into internal networks, enabling subsequent credential theft, lateral movement, data exfiltration, and ransomware deployment. These downstream activities require additional attacker actions and should not be interpreted as evidence that this vulnerability directly provides arbitrary code execution.
Mitigation
If you can’t patch tonight, do this now.
Disable internet-facing WAN management or restrict management access to trusted sources. Disable SSL VPN where unnecessary; otherwise restrict it to trusted source addresses and enforce MFA for all SSL VPN users. Remove inactive accounts, minimize account privileges, and monitor authentication logs, configuration changes, and unusual network traffic. Segment remote-access networks from sensitive systems. These measures reduce exposure but do not replace firmware updates, credential resets, or replacement of unsupported appliances.
Remediation
Patch, then assume compromise.
Install the model-specific fixed SonicOS firmware identified in SonicWall advisory SNWLID-2024-0015, preferably upgrading to a current supported release. Patches were released in August 2024. Immediately reset passwords for locally managed SSL VPN accounts, particularly on Generation 5 and Generation 6 devices, and require password changes for affected local accounts. Reset all user passwords when addressing related compromise risk, including credentials retained during Generation 6-to-Generation 7 migrations; firmware upgrades alone do not invalidate previously compromised credentials. Replace end-of-support Generation 6 and 6.5 devices with supported appliances rather than relying indefinitely on historical patches.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2024-40766 exploited in the wild?
- Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 9, 2024.
- Is there a public exploit for CVE-2024-40766?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-40766, the earliest disclosed Feb 23, 2026.
- Is there a patch for CVE-2024-40766?
- Install the model-specific fixed SonicOS firmware identified in SonicWall advisory SNWLID-2024-0015, preferably upgrading to a current supported release. Patches were released in August 2024.
- What products are affected by CVE-2024-40766?
- Sonicwall Sonicos.
- How severe is CVE-2024-40766?
- CVE-2024-40766 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.8% (80th percentile) as of Nov 26, 2026.
Recent activity
233 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.