CVE-2024-40766: Improper Access Control in SonicWall SonicOS Management and SSLVPN
- Vendor
- Sonicwall
CVE-2024-40766 is an improper access control vulnerability in the management access and SSLVPN functionality of SonicWall SonicOS. It affects supported Gen 5 and Gen 6 firewall models running vulnerable firmware and Gen 7 devices running SonicOS 7.0.1-5035 or earlier. Exploitation can permit unauthorized resource access, bypass security policies, compromise data confidentiality, and, under specific conditions, crash the firewall. Technical details of the vulnerable functions and triggering requests have not been publicly established. The vulnerability has been exploited in ransomware-related intrusions, including activity associated with Akira and SafePay.
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 compromise confidentiality and integrity through unauthorized access to resources and potentially allow data viewing, modification, or deletion. A firewall crash can cause denial of service and disrupt connectivity. Compromised management or VPN access can also provide an initial foothold for subsequent credential theft, lateral movement, data exfiltration, and ransomware deployment; these follow-on actions are not intrinsic capabilities of the vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Disable SSLVPN when unnecessary, or restrict access to trusted source addresses if it must remain enabled. Restrict firewall management to trusted networks and disable unnecessary Internet-facing WAN management. Enable MFA for all SSLVPN and administrative accounts, rotate local account passwords, and require password changes where appropriate. Remove inactive accounts and review LDAP group mappings and service-account privileges to prevent excessive VPN access. Restrict and monitor Virtual Office Portal access, review authentication and management logs, and monitor for suspicious account changes and remote access. These measures supplement rather than replace firmware updates and credential resets.
Remediation
Patch, then assume compromise.
Apply the model-specific fixed firmware identified in SonicWall advisory SNWLID-2024-0015 or a newer supported release. Identified fixed releases include SonicOS 5.9.2.14-13o for Gen 5 SOHO devices, 6.5.2.8-2n for Gen 6 SM9800 and NSsp 12400/12800 devices, and 6.5.4.15-116n for other affected Gen 6 models. Upgrade affected Gen 7 devices from SonicOS 7.0.1-5035 or earlier to a vendor-fixed release; later campaign guidance recommends SonicOS 7.3.0 or newer for additional brute-force protections. Reset locally managed SSLVPN account passwords, particularly credentials retained during Gen 6-to-Gen 7 migrations. Firmware updates alone do not invalidate previously compromised credentials. Investigate suspected compromise rather than treating patching as complete incident remediation.
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 8, 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?
- Apply the model-specific fixed firmware identified in SonicWall advisory SNWLID-2024-0015 or a newer supported release. Identified fixed releases include SonicOS 5.9.2.14-13o for Gen 5 SOHO devices, 6.5.2.8-2n for Gen 6 SM9800 and NSsp 12400/12800 devices, and 6.5.4.15-116n for other affected Gen 6 models.
- 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 18.4% (97th percentile) as of Nov 8, 2026.
Recent activity
228 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.