CVE-2021-20028 is a SQL injection vulnerability in SonicWall Secure Remote Access (SRA). CISA added it to the Known Exploited Vulnerabilities catalogue on 28 March 2022, which means attackers have used it in real attacks. SonicWall Secure Remote Access (SRA) products contain an improper neutralization of a SQL Command leading to SQL injection.
What this vulnerability means in a remote access appliance
SQL injection in a remote access product is dangerous because the affected service often sits at a high-trust boundary, handling authentication flows, session state, and administrative functions. When an attacker can manipulate the backend database layer, they may move from a web-facing request into data exposure, privilege abuse, or broader appliance compromise.
For defenders, the key issue is not just that the flaw exists, but that remote access systems are frequently exposed to the internet and are attractive targets for opportunistic exploitation. That makes this a classic case where an input-handling bug becomes a perimeter risk.
How exposure is usually assessed
The first question is whether the organisation still runs SonicWall secure remote access, whether the appliance is internet-facing, and whether it is reachable through any lingering DNS records, NAT rules, or legacy access paths. Asset inventory matters because remote access devices are often forgotten after replacement projects or migration work.
Version-specific exposure should be confirmed against the vendor advisory and the NIST National Vulnerability Database, while exploitation relevance should be checked against the CVE Program and the CISA KEV catalogue referenced in the primary definition. If the appliance is externally reachable, treat exposure as operationally urgent even before patch scheduling is finalised.
Telemetry from perimeter controls, reverse proxies, and authentication logs can also help determine whether the vulnerable service has been probed already. In practice, the most important signal is whether the exposed instance can still be reached by unauthenticated users on the public internet.
Remediation and compensating controls
The preferred fix is vendor remediation as described in the SonicWall advisory, but until that is complete, organisations should reduce exposure by restricting access to trusted networks, tightening inbound rules, and removing unnecessary publication of the service. Remote access appliances should never be left broadly reachable when a known exploited injection flaw is present.
Where a patch cannot be applied immediately, compensating controls should focus on shrinking the attack surface and limiting the blast radius. That includes isolating the appliance from other critical management systems, enforcing strict administrative access paths, and reviewing whether temporary outage or failover is safer than continued exposure.
The broader lesson is the same one reinforced by Vulnerability Management Guide: known exploited vulnerabilities should be prioritised by exploitability and internet exposure, not by age alone. For remote access platforms, the business pressure to keep access available should not override containment when the device itself is under active attack.
Detection and compromise review after remediation
Once the flaw is patched or isolated, the response should include a post-exploitation review, not just a configuration fix. SQL injection in a remote access appliance can be used to alter records, enumerate sensitive data, or stage follow-on access, so organisations should inspect logs for anomalous requests, unexpected administrative changes, and suspicious new sessions around the exposure window.
If there is any sign that the appliance was abused, review whether credentials, session tokens, certificates, or linked administrative accounts may have been exposed through the compromise path. Remote access products often concentrate trust, so a single successful exploit can justify wider identity and session rotation.
For teams that need a concrete hunting baseline, the Web Application Attacks Guide is a useful reference for SQL injection patterns and defensive review. If the appliance participated in broader remote access abuse, Remote Access Identity Guide helps frame the surrounding access and trust risks.
Risk and Threat Considerations
Because this CVE was added to CISA KEV, it should be treated as an actively exploited internet-facing vulnerability, not a theoretical code defect. The main risk is that a simple web request can become an entry point into a high-trust remote access system, creating exposure far beyond the initial application layer.
Failure mechanism: SQL injection allows crafted input to alter database queries, which can expose authentication data, manipulate state, or support deeper compromise of the appliance and connected access workflows.
Impact: Attackers may gain unauthorised access, pivot into connected systems, harvest credentials or session material, and use the remote access platform as a foothold for further intrusion.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V4 — API and Web Service | SQL injection is a web service input validation failure in the remote access appliance. |
| Recommendation — Test request handling paths for injection and harden server-side input validation. | ||
| NIST SP 800-53 Rev 5 | SI-10 — Information Input Validation | SQL injection is prevented by validating and sanitising untrusted input before query use. |
| RA-5 — Vulnerability Monitoring and Scanning | The CVE requires active identification, prioritisation and tracking of exposed vulnerable assets. | |
| Recommendation — Validate all externally supplied input before it reaches database queries. Continuously scan exposed systems and prioritise KEV-listed flaws for remediation. | ||
| CIS Controls v8 | CIS-7 — Continuous Vulnerability Management | This CVE is a known exploited vulnerability that demands prioritised remediation. |
| Recommendation — Prioritise and remediate exposed KEV-listed vulnerabilities as an urgent operational risk. | ||
| ISO/IEC 27001:2022 | A.8.8 — Management of technical vulnerabilities | The flaw is a technical vulnerability that requires controlled identification and remediation. |
| Recommendation — Track, assess and remediate the vulnerability through a formal technical-vulnerability process. | ||
Practitioner Guidance
Why practitioners should care: Treat exploited remote access flaws as perimeter incidents, not routine patch tickets. When a VPN or secure access appliance is vulnerable, the question is whether the organisation can still trust that gateway to mediate access safely.
What to watch for: Focus on internet exposure, repeated probing, unexpected changes in admin behaviour, and any evidence that accounts or sessions were used in ways that do not match normal remote access patterns.
Practitioner takeaway: If the appliance cannot be patched immediately, isolate it and assume the trust boundary is weakened until you can verify both remediation and post-patch integrity.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org