Press enter or click to view image in full size
In May 2026, ransomware-linked attacks associated with CVE-2024–12802 targeting SonicWall Gen6 SSL-VPN devices regained attention. The vulnerability stems from a structural flaw in how SSL-VPN authentication handles UPN (User Principal Name) and SAM (Security Account Manager) account formats separately. In certain environments, attackers can exploit alternative login formats to bypass MFA even when MFA appears to be enabled.
What makes this vulnerability particularly dangerous is that it is not simply a patching issue. SonicWall’s official advisory states that Gen6 devices require an additional six-step manual LDAP reconfiguration after firmware updates. However, standard patch management workflows typically verify only firmware versions and do not confirm whether the manual reconfiguration has been completed. As a result, administrators may believe their devices are protected while vulnerable LDAP configurations remain active. Furthermore, MFA bypass attempts in these attacks are logged as seemingly legitimate MFA successes, making detection significantly more difficult for security teams.
This article analyzes the technical root cause and attack flow of CVE-2024–12802 and examines why externally exposed VPN devices can become initial access vectors for ransomware operations.
CategoryDescriptionVulnerability IDCVE-2024–12802Affected ProductSonicWall SSL-VPNVulnerability TypeMFA Authentication Bypass — CWE-305(Authentication Bypass by Primary Weakness)CVSS Score9.1 (Critical)Exploitation StatusRansomware-linked attacks observed across multiple environments in Feb–Mar 2026
CVE-2024–12802 occurs due to the way SonicWall SSL-VPN handles different account name formats in Active Directory environments. Users can typically authenticate using either:
The issue is that MFA policies may be applied separately to each login format rather than to the user identity itself. An administrator may configure MFA enforcement for one login format while leaving another authentication path insufficiently protected. Attackers who obtain valid credentials can then authenticate through the weaker login path without triggering MFA.
The UPN (User Principal Name) format resembles an email address such as [email protected]. The SAM (Security Account Manager) format follows the legacy Windows domain login style: DOMAIN\username. Although both formats reference the same user account, SonicWall processes them as entirely separate authentication paths. MFA is configured independently for each login flow rather than being tied directly to the user identity. If MFA is configured only for the SAM path, the UPN path may remain unprotected, allowing successful authentication with only valid credentials and no second-factor verification.
For Gen6 devices, firmware updates patch the vulnerable code but do not modify existing LDAP configurations. If the legacy LDAP configuration using userPrincipalName remains intact, MFA bypass through the UPN path remains possible even after updating. Although SonicWall explicitly documented this behavior in its advisory, standard patch management systems generally verify only firmware versions, not whether manual LDAP reconfiguration was completed.
As a result:
Yet the environment may still remain vulnerable.
A typical attack flow exploiting CVE-2024–12802 may proceed as follows:
One of the most important aspects of this attack chain is its speed. Internal reconnaissance and access to file servers may occur within minutes after VPN access is established. If SSL-VPN devices are externally exposed and account protection policies are incomplete, attackers can leverage a single vulnerability as the starting point for full internal compromise.
To assess the real-world exposure of SonicWall SSL-VPN devices, externally identifiable service indicators can be used to analyze the attack surface. Criminal IP Asset Search was used to observe internet-exposed SonicWall SSL-VPN assets.
Criminal IP Search Query: product: sonicwall ssl-vpn web server
This query identifies SonicWall SSL-VPN web server assets accessible from the public internet. As of May 2026, approximately 6,250 instances were identified. These assets indicate environments where SSL-VPN login portals or related services are externally identifiable. Since SonicWall SSL-VPN functions as an authentication gateway into internal networks, exposed devices provide attackers with opportunities to:
In vulnerabilities such as CVE-2024–12802, where weaknesses in MFA handling can be exploited, simple external accessibility itself becomes a key factor determining exploitability. Even if devices run the latest firmware, Gen6 systems remain vulnerable if LDAP reconfiguration has not been completed. Even if devices run the latest firmware, Gen6 systems remain vulnerable if LDAP reconfiguration has not been completed.
Criminal IP Search Query: product: sonicwall ssl-vpn web server ssl_expired: true
This query identifies internet-facing SonicWall SSL-VPN web servers using expired SSL certificates. As of May 2026, approximately 1,200 assets were identified. While expired SSL certificates do not directly indicate exploitability of CVE-2024–12802, they may signal:
For this reason, such assets should be prioritized for review in relation to CVE-2024–12802. In Gen6 environments especially, simply verifying firmware updates is not sufficient. Organizations must also confirm completion of LDAP reconfiguration, removal of cached LDAP users, reset of SSL-VPN User Domain settings, device reboot, and creation of new clean backups.
Detailed analysis of one externally exposed asset identified by Criminal IP revealed:
This demonstrates that the issue extends beyond a simple exposed VPN portal. Multiple exposed services and vulnerabilities create an environment where attackers can explore additional attack vectors beyond VPN access itself. Such assets may become effective initial access points for internal compromise when authentication bypass vulnerabilities such as CVE-2024–12802 are present.
Join Medium for free to get updates from this writer.
This individual asset analysis demonstrates that assessing SonicWall SSL-VPN risk requires more than simply checking whether a VPN portal is exposed. Organizations should evaluate multiple factors together, including external accessibility, threat level, number of open ports, associated vulnerabilities, SSL certificate status, and hosting environment context, to establish realistic attack-priority assessments. Ultimately, the core challenge in responding to CVE-2024–12802 is not merely verifying whether patches were applied, but continuously identifying externally exposed assets that attackers can realistically discover and access.
The most critical aspect of CVE-2024–12802 remediation is understanding that, for Gen6 devices, firmware updates alone may not fully resolve the issue. Even with the latest firmware installed, MFA bypass may remain possible if legacy LDAP configurations are still present. Organizations must therefore complete the manual remediation steps described in the official advisory. While Gen7 and Gen8 devices receive the necessary protections through firmware updates, Gen6 devices may retain vulnerable LDAP configurations and require separate manual reconfiguration.
Organizations operating Gen6 SonicWall SSL-VPN devices should prioritize the following checks:
userPrincipalNameOrganizations should also monitor VPN authentication logs for indicators such as:
sess="CLI" session typesThese signals may serve as important indicators of automated VPN attacks or MFA bypass attempts. Because Gen6 devices officially reached end-of-support status on April 16, 2026, organizations should immediately perform manual remediation and log review in the short term, while planning migration to supported hardware in the long term. Rather than treating patch verification alone as sufficient remediation, organizations must also verify completion of configuration rework and investigate potential signs of compromise.
The CVE-2024–12802 incident is a textbook example showing that “being patched” does not necessarily mean “being protected.” The vulnerability itself was disclosed in 2024, and firmware patches were released shortly afterward. However, a combination of incomplete remediation, the hidden requirement for a six-step manual reconfiguration process, and the structural limitation that standard patch management workflows do not verify completion of manual remediation left many organizations believing they were protected when they were not.
The key lessons from this incident are clear: having MFA enabled and running the latest firmware does not guarantee actual security, and traces left by attackers may be indistinguishable from legitimate activity in normal logs. Organizations should immediately verify where SonicWall Gen6 devices are deployed, whether the six-step reconfiguration process has been completed, and whether indicators such as sess="CLI" are present in authentication logs.
In relation to this, you can refer to CVE-2026–41940: Analysis of the cPanel Authentication Bypass Vulnerability