CVE-2021-20028 — SonicWall Secure Remote Access (SRA) SQL Injection Vulnerability

CVE-2021-20028

SonicWall SRA — EOL VPN Appliance SQL Injection Enabling Unauthenticated Credential Theft, Used in Ransomware Campaigns

What is SonicWall Secure Remote Access?

SonicWall Secure Remote Access (SRA) appliances (SRA 4600, SRA 1600, SRA Virtual Appliance) are SSL VPN gateways that provide remote access for employees to corporate network resources. The SRA product line reached end-of-life status — SonicWall no longer provides firmware updates or security patches for these devices. Despite their EOL status, many organizations continued deploying SRA appliances after their support window closed, leaving them with unpatched critical vulnerabilities. CISA's required action for this CVE is explicit: disconnect EOL SRA devices from the network.

Overview

CVE-2021-20028 is an improper neutralization of SQL commands (SQL injection, CWE-89) in SonicWall's Secure Remote Access (SRA) products. An unauthenticated remote attacker can exploit the SQL injection to access the SRA's credential database, extract VPN user credentials, and potentially authenticate to the VPN without knowing any valid passwords. SonicWall published an advisory in August 2021; CISA added this to KEV in March 2022 following confirmed ransomware exploitation. Because the affected products are EOL, no patch is available.

Affected Versions

Product Status Action
SonicWall SRA 4600 EOL — Vulnerable Disconnect immediately
SonicWall SRA 1600 EOL — Vulnerable Disconnect immediately
SonicWall SRA Virtual Appliance EOL — Vulnerable Disconnect immediately

Technical Details

The SRA web interface includes a SQL injection vulnerability in its authentication flow. SQL queries that process user-supplied login parameters (username, password, or session identifiers) are not properly parameterized:

  • Root cause: SQL injection (CWE-89) — user-supplied input is incorporated into SQL queries without proper parameterization or escaping
  • Authentication required: None — the SQL injection is exploitable in the pre-authentication login flow
  • Impact: Full access to the SRA credential database, including VPN user credentials (potentially plaintext or easily crackable hashes)
  • Credential use: Extracted VPN credentials can be used to authenticate to the VPN, providing network access to the organization
  • No patch available: The affected products are EOL — SonicWall will not release a fix

Discovery

Identified and reported to SonicWall. SonicWall confirmed EOL status and recommended disconnecting rather than patching.

Exploitation Context

Ransomware operators actively target VPN appliances as initial access vectors. EOL SonicWall SRA devices with exposed management interfaces were actively scanned and exploited in ransomware campaigns. The SQL injection enabled credential theft, which attackers used to access corporate VPNs and deploy ransomware. SonicWall SRA has been repeatedly targeted — earlier vulnerabilities (CVE-2019-7481) in the same product line were also exploited in ransomware campaigns.

Remediation

  1. Disconnect all EOL SonicWall SRA devices immediately — no patch is available
  2. Replace EOL SRA with supported SonicWall SMA 100 series or other currently supported VPN solutions
  3. If immediate replacement is not possible: disconnect from internet access, restrict to internal-only management, and treat as fully compromised
  4. Rotate all VPN user credentials that may have been stored on the SRA device
  5. Review VPN authentication logs for unauthorized logins during the period the SRA was deployed
  6. Consider replacing the VPN solution with a modern zero-trust network access (ZTNA) approach

Key Details

PropertyValue
CVE ID CVE-2021-20028
Vendor / Product SonicWall — Secure Remote Access (SRA)
NVD Published2021-08-04
NVD Last Modified2025-10-31
CVSS 3.1 Score9.8
CVSS 3.1 VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SeverityCRITICAL
CWE CWE-89 find similar ↗
CISA KEV Added2022-03-28
CISA KEV Deadline2022-04-18
Known Ransomware Use ⚠️ Yes

CVSS 3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Required Action

CISA BOD 22-01 Deadline: 2022-04-18. The impacted product is end-of-life and should be disconnected if still in use.

Timeline

DateEvent
2021-08-04SonicWall publishes PSIRT advisory; CVE published
2022-03-28Added to CISA Known Exploited Vulnerabilities catalog
2022-04-18CISA BOD 22-01 remediation deadline

References

ResourceType
SonicWall PSIRT Advisory SNWLID-2021-0019 Vendor Advisory
NVD — CVE-2021-20028 Vulnerability Database
CISA KEV Catalog Entry US Government