CVE-2021-20016: Unauthenticated SQL Injection in SonicWall SMA 100 SSL VPN
- Vendor
- Sonicwall
CVE-2021-20016 is a SQL injection vulnerability affecting SonicWall Secure Mobile Access (SMA) 100 Series SSL VPN appliances running vulnerable 10.x firmware builds. Improper neutralization of SQL input allows a remote, unauthenticated attacker to submit a specially crafted query and retrieve usernames, passwords, and session-related information. The vulnerability was exploited as a zero-day in January 2021 and patched in February 2021.
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 exposes VPN login credentials and session information, compromising the confidentiality of authentication data. Attackers have used the vulnerability for initial access in intrusions that subsequently deployed FiveHands and DarkSide ransomware. Those downstream compromises involved additional attacker activity; arbitrary code execution and ransomware deployment are not established as direct effects of the SQL injection. Evidence that an attacker used the vulnerability to disable VPN multifactor authentication remains unconfirmed.
Mitigation
If you can’t patch tonight, do this now.
Monitor for compromised VPN credentials and enforce multifactor authentication with strong passwords to reduce credential-abuse risk. These measures do not correct the SQL injection or prevent disclosure of session information and are not substitutes for installing fixed firmware.
Remediation
Patch, then assume compromise.
Install SonicWall firmware containing the fix released in February 2021, or a later supported release containing that fix. The original minimum fixed build is not specified. For broader SMA 100 appliance security hardening, firmware version 10.2.1.7 or later adds file integrity monitoring and anomalous process identification.
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-2021-20016 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2021-20016?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-20016, the earliest disclosed Feb 23, 2026.
- Is there a patch for CVE-2021-20016?
- Install SonicWall firmware containing the fix released in February 2021, or a later supported release containing that fix. The original minimum fixed build is not specified.
- What products are affected by CVE-2021-20016?
- Sonicwall Sma 100 Firmware, Sonicwall Sma 200 Firmware, Sonicwall Sma 210 Firmware, Sonicwall Sma 400 Firmware, Sonicwall Sma 410 Firmware, and 1 more.
- How severe is CVE-2021-20016?
- CVE-2021-20016 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 40.0% (99th percentile) as of Oct 16, 2026.
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.