# CVE-2021-20038: SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability

- Priority: **Act now**
- Reason: Known ransomware use (CISA, 28-01-2022)
- Next step: Check the vendor advisory
- Status: published
- Published: 2021-12-08 · Modified: 2025-10-21
- Record: https://cvemate.com/vulnerability/CVE-2021-20038 · JSON: https://cvemate.com/vulnerability/CVE-2021-20038/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 99.912%, percentile 99.967%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2022-01-28, ENISA not listed, CIRCL not listed
- Ransomware use: known
- Public exploits: 2 (github, reference)

## Affected

- sonicwall sma\_200\_firmware: 10.2.0.8-37sv \| 10.2.1.1-19sv \| 10.2.1.2-24sv
- sonicwall sma\_210\_firmware: 10.2.0.8-37sv \| 10.2.1.1-19sv \| 10.2.1.2-24sv
- sonicwall sma\_400\_firmware: 10.2.0.8-37sv \| 10.2.1.1-19sv \| 10.2.1.2-24sv
- sonicwall sma\_410\_firmware: 10.2.0.8-37sv \| 10.2.1.1-19sv \| 10.2.1.2-24sv
- sonicwall sma\_500v\_firmware: 10.2.0.8-37sv \| 10.2.1.1-19sv \| 10.2.1.2-24sv
- sonicwall sonicwall sma100: 10.2.0.8-37sv and earlier \| 10.2.1.1-19sv and earlier \| 10.2.1.2-24sv and earlier

## References

- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026>
- <https://github.com/jbaines-r7/badblood>
- <https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038>

---

Data as of 2026-12-05T11:22:55.276Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
