What is SonicWall SMA 100?
SonicWall Secure Mobile Access (SMA) 100 series appliances (SMA 200, SMA 210, SMA 400, SMA 410, SMA 500v) are SSL VPN gateways that provide remote workers with secure access to corporate networks and applications. As internet-facing VPN appliances, SMA devices have a large attack surface — they must accept connections from any internet IP — making critical vulnerabilities particularly dangerous. SonicWall SMA devices have been repeatedly targeted by ransomware operators and nation-state actors who recognize that compromising a VPN gateway provides persistent access to the protected network.
Overview
CVE-2021-20038 is an unauthenticated stack-based buffer overflow (CWE-121) in the SonicWall SMA 100 series appliances. The vulnerability exists in the Apache httpd server component included with the SMA firmware. A remote, unauthenticated attacker can send specially crafted HTTP requests that overflow a stack buffer, potentially enabling arbitrary code execution with root privileges on the appliance. SonicWall patched this in December 2021; CISA added it to KEV in January 2022 following confirmed ransomware exploitation.
Affected Versions
| Product | Vulnerable | Fixed |
|---|---|---|
| SMA 200, 210, 400, 410, 500v — firmware 10.2.0.x | < 10.2.0.7-37sv | 10.2.0.7-37sv |
| SMA 200, 210, 400, 410, 500v — firmware 10.2.1.x | < 10.2.1.2-24sv | 10.2.1.2-24sv |
| SMA 200, 210, 400, 410, 500v — firmware 10.2.1.x | < 10.2.1.3-27sv | 10.2.1.3-27sv |
| SMA 200, 210, 400, 410, 500v — firmware 9.0.0.x | < 9.0.0.10-32sv | 9.0.0.10-32sv |
Technical Details
The stack-based buffer overflow exists in the handling of HTTP request processing within the SMA 100's embedded Apache httpd server. An attacker crafts an HTTP request with an oversized parameter that overflows a fixed-size stack buffer:
- Root cause: Stack buffer overflow (CWE-121) in Apache httpd component — a fixed-size stack buffer is overflowed by an attacker-supplied overly long value in an HTTP request
- Authentication required: None — the vulnerable code path is reached before any authentication check
- Exploitation complexity: Low — no heap spray or timing requirements; reliable overflow with correctly crafted request
- Code execution: With control over the return address or function pointer on the stack, an attacker can redirect execution to shellcode or ROP gadgets
- Impact: Remote code execution as root on the SMA appliance — full control over the VPN gateway
Discovery
SonicWall's PSIRT identified this vulnerability internally. NCC Group published post-exploitation research on SonicWall SMA vulnerabilities, providing context on exploitation techniques.
Exploitation Context
Ransomware operators actively target VPN appliances as initial access points because they are internet-facing and their compromise provides immediate network access. CVE-2021-20038 was confirmed used in ransomware campaigns. Threat actors compromising SMA 100 appliances gain access to the VPN management interface and can potentially steal VPN credentials, modify access controls, and pivot into the corporate network.
Remediation
- Update SMA 100 series firmware to the patched version for your release branch (see table above)
- SonicWall SMA devices should not have their management interface exposed to the internet — restrict management (HTTPS/SSH) to trusted management network IPs
- Audit SMA device logs for unauthorized access attempts and unusual authentication events
- If compromise is suspected, perform a factory reset and reconfigure from a known-good baseline rather than simply patching
- Enable SonicWall's intrusion prevention signatures to detect exploitation attempts
- Rotate all VPN user credentials that may have been accessible on the compromised appliance
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2021-20038 |
| Vendor / Product | SonicWall — SMA 100 Appliances |
| NVD Published | 2021-12-08 |
| NVD Last Modified | 2025-10-31 |
| CVSS 3.1 Score | 9.8 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-121 find similar ↗ |
| CISA KEV Added | 2022-01-28 |
| CISA KEV Deadline | 2022-02-11 |
| Known Ransomware Use | ⚠️ Yes |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2021-12-08 | SonicWall publishes PSIRT advisory; CVE published |
| 2022-01-28 | Added to CISA Known Exploited Vulnerabilities catalog |
| 2022-02-11 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| SonicWall PSIRT Advisory SNWLID-2021-0026 | Vendor Advisory |
| NVD — CVE-2021-20038 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |