Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-53704: SonicWall SonicOS SSLVPN Authentication Bypass

Published Jan 9, 2025 · Updated 11 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days5 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS53.4%99th percentile
CISA KEVYesAdded Feb 18, 2025
In the wildActivePer CISA KEV
Vendor
Sonicwall
IdentifiersCVE-2024-53704CWE-287 · Improper Authentication

CVE-2024-53704 is an improper authentication vulnerability in the SonicWall SonicOS SSLVPN session-validation mechanism. Incorrect handling of null characters in Base64-encoded session cookies allows a remote, unauthenticated attacker to bypass validation and hijack an existing authenticated SSL VPN session. The affected processing includes the getSslvpnSessionFromCookie function and associated session-verification logic. Affected releases include SonicOS 7.1.1-7058 and earlier affected 7.1.x releases, 7.1.2-7019, and 8.0.0-8035. Successful exploitation grants VPN access within the hijacked user's permissions.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

An attacker can impersonate an authenticated VPN user, read Virtual Office bookmarks, retrieve a NetExtender configuration profile, establish a VPN tunnel, and access internal resources permitted to that user. The attacker can also terminate the victim's VPN connection by logging out the hijacked session. This access can facilitate follow-on lateral movement, data theft, and ransomware deployment, but the vulnerability itself does not establish arbitrary code execution or administrative privileges on the firewall. Exploitation in real incidents and ransomware-related use have been documented.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable Internet-facing SSLVPN access or restrict SSLVPN connectivity to trusted source networks. Review VPN access logs for unexpected activity, particularly multiple source IP addresses associated with the same authenticated session. Restricting management-interface exposure is additional hardening, not a substitute for protecting the SSLVPN service or installing the fix.

Remediation

Patch, then assume compromise.

Install the SonicWall firmware update appropriate to the appliance and affected release branch. Identified fixed releases include SonicOS 7.1.3-7015 and SonicOS 8.0.0-8037, or later supported releases containing the fix. Use SonicWall advisory SNWLID-2025-0003 and the applicable release notes to verify model-specific upgrade requirements. Patching should be accompanied by review for prior unauthorized VPN access.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
sonicwall-audit-toolkitRepository purpose: a Python-based SonicWall “Security Audit Toolkit” plus a Docker CTF-style lab that simulates and (in solutions) exploits two critical SonicWall CVEs. Top-level structure: - sonicwall_audit.py: main orchestrator CLI that runs modules (ssl, cve, auth, web) against a target https://<host>:<port>, writes JSON/text reports to reports/. - validate_cves.py: standalone deep validators for CVE-2021-20038 and CVE-2024-53704 using non-destructive behavioral checks. - modules/: implementation of auditors/validators and report generation. - lab/: docker-compose lab with two containers: - cve-2021-20038: Apache + deliberately vulnerable 32-bit CGI binary /usr/lib/cgi-bin/sslvpnclient (and symlinks portal/welcome/etc). Protections disabled (no canary, execstack, no PIE, ASLR disabled in entrypoint) to make stack overflow exploitation feasible. - cve-2024-53704: Flask/Gunicorn SSLVPN simulator on 4433 with vulnerable swap cookie deserialization (conditional HMAC verification). - lab/exploits/: skeleton exploit templates (incomplete). - lab/solutions/: working exploits. Exploit capabilities present: 1) CVE-2024-53704 (auth bypass via cookie forgery): Working exploit forges a base64-encoded JSON session cookie named swap with {username, authenticated:true} and omits sig_version so the server skips HMAC verification. It then accesses /virtual-office/ and /dashboard to retrieve the flag. 2) CVE-2021-20038 (stack buffer overflow -> RCE): Working exploit crafts a URL-encoded query string payload to overflow a 4096-byte stack buffer in the CGI handler (strcpy of QUERY_STRING). Payload includes a NOP sled, null-free 32-bit x86 Linux shellcode that runs /bin//sh -c "cat /root/flag.txt", padding to offset 4100, and an attacker-chosen return address into the sled. Output is returned in the HTTP response body. Important distinction: the main toolkit modules and CVE validators are primarily scanners/validators and explicitly avoid destructive exploitation; the actual exploitation code is confined to the lab solution scripts intended for the local practice environment.anir0y · Disclosed Feb 23, 2026 · python · c · network · local (docker lab)WeaponizedSonicSessionLeakRepository contains a single Ruby proof-of-concept script (CVE-2024-53704.rb) that targets CVE-2024-53704 by brute-forcing/leaking valid session cookies via a network-accessible API oracle. Key behavior: - Connects to a target IP and port (default 4433) using a raw TCP socket; wraps the socket in TLS for ports 443 and 4433 with certificate verification disabled. - Sends repeated GET requests to /__api__/v1/client/sessionstatus?cookie=... and interprets responses: if the response includes 'notfound' the candidate is rejected; otherwise it is treated as a possible valid cookie/prefix. - Cookie construction: builds a 32-byte raw cookie where the last byte is a checksum computed as XOR of all bytes, then base64-encodes the 32-byte value (expected length 44 chars). The brute-force iterates lowercase letters a-z for each position, pads remaining bytes with NULs, and recurses until a full 31-character prefix is found (final byte is checksum). Capabilities/impact: - Enables discovery of valid session cookies (session ID leakage) which could facilitate session hijacking depending on the target application’s session handling. Structure: - Helper functions: send_http_data (minimal HTTP response reader honoring Content-Length), calc_checksum (XOR checksum), get_sessionstatus (request builder/sender), brute_cookies (recursive brute-force), hax (driver). - CLI options: -t target IP (required; note option name typo '--taget'), -p port, -v verbose (prints partial candidates).sfewer-r7 · Disclosed Jan 22, 2025 · ruby · networkPoCCVE-2024-53704This repository is a proof-of-concept exploit for CVE-2024-53704, targeting Dell SonicWALL NetExtender VPN servers. The exploit consists of a Python package ('nxbender') and a main script (CVE-2024-53704.py or nxbender/__init__.py) that allows an attacker to establish a VPN session by providing a valid or stolen 'swap' cookie, bypassing the normal authentication process. The code handles the full VPN connection process: it sets up the session, negotiates the tunnel, and configures network routes on the attacker's machine. The exploit interacts with the NetExtender server over HTTPS (default port 4433) and uses PPP over SSL to establish the tunnel. The repository is structured as a Python package with modules for session management, PPP handling, and SSL connections. The README provides detailed usage instructions, configuration options, and security warnings. No hardcoded credentials or IPs are present; the attacker must supply the target server and swap cookie. The exploit is operational but requires attacker-supplied credentials and root privileges for full functionality.istagmbh · Disclosed Feb 11, 2025 · python · networkPoC
Exposure surface

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.

VendorProductType
SonicwallSonicosoperating_system
FAQ

Frequently asked questions

Is CVE-2024-53704 exploited in the wild?
Yes. As of Nov 17, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 18, 2025.
Is there a public exploit for CVE-2024-53704?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2024-53704, the earliest disclosed Jan 22, 2025.
Is there a patch for CVE-2024-53704?
Install the SonicWall firmware update appropriate to the appliance and affected release branch. Identified fixed releases include SonicOS 7.1.3-7015 and SonicOS 8.0.0-8037, or later supported releases containing the fix.
What products are affected by CVE-2024-53704?
Sonicwall Sonicos.
How severe is CVE-2024-53704?
CVE-2024-53704 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 53.4% (99th percentile) as of Nov 17, 2026.
Activity feed

Recent activity

28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+16 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware5Malware families linked to this CVE, with evidence and IOCs.
Detection signatures6YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.