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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2022-01-28; used in ransomware campaigns. Apply updates per vendor instructions.
- Likelihood of exploitation in the next 30 days (EPSS): 99.9%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-12-08T09:55:20.000Z
- Modified: 2026-06-17T03:33:11.327Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: sonicwall

## 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.

(As written by CVE List.)

## Affected

- SonicWall SonicWall SMA100: 10.2.0.8-37sv and earlier; 10.2.1.1-19sv and earlier; 10.2.1.2-24sv and earlier
- 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_410_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_500v_firmware: 10.2.0.8-37sv; 10.2.1.1-19sv; 10.2.1.2-24sv
- SonicWall SMA 100 Appliances: no versions given

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/jbaines-r7/badblood> (exploit, third-party-advisory)
- <https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/> (exploit, third-party-advisory)
- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026> (vendor-advisory)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038> (government-resource, us-government-resource)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-20038> (kev)

## Sources

- CVE List: [CVE-2021-20038](https://www.cve.org/CVERecord?id=CVE-2021-20038), CVE Terms of Use, modified 2025-10-21
- NVD: [CVE-2021-20038](https://nvd.nist.gov/vuln/detail/CVE-2021-20038), Public domain, modified 2026-06-17
- CISA KEV: [CVE-2021-20038](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2021-20038), CC0-1.0, modified 2022-01-28

---

Page: https://cve.day/CVE-2021-20038 · Whole record: https://cve.day/CVE-2021-20038.json · Rebuilt by cve.day 2026-11-25T22:58:05.867Z
