CVE-2021-20038: SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability
Vulnerability summary
CVE-2021-20038 is a critical (CVSS 9.8) Stack-based Buffer Overflow vulnerability in SonicWall SMA 100 Appliances. It is known to be exploited: CISA lists it, first on 28-01-2022. It has been used in ransomware campaigns. EPSS estimates a 99.91% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 08-12-2021PublishedVulnerability first disclosed.
- 28-01-2022Added to CISA KEVSonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability
- 11-02-2022CISA remediation dueApply updates per vendor instructions.
- 21-10-2025Last modifiedVulnerability information updated.
Description
A Stack-based buffer overflow vulnerability in SMA100 Apache httpd server's mod_cgi module environment variables allows a remote unauthenticated attacker to potentially execute code as a 'nobody' user in the appliance. This vulnerability affected SMA 200, 210, 400, 410 and 500v appliances firmware 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier versions.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
99.91%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 99.91% on 18-09-2026
Known exploited
Compare KEV catalogs- Added
- 28-01-2022
- Federal due date
- 11-02-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2021-20038
Public exploits
2 foundBadblood
Maturity: poc
Exploit Reference (rapid7.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Sonicwall6 products
- sma_200_firmware10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv
- sma_210_firmware10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv
- sma_400_firmware10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv
- sma_410_firmware10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv
- sma_500v_firmware10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv
1 vendor · 6 products
References
4 links- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038Government ResourceUS Government Resource