# CVE-2021-20038

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.

- Page: https://www.vulneraibility.com/cve/CVE-2021-20038
- CVSS: 9.8
- Known exploited: yes, in CISA KEV since 2022-01-28; CISA due date 2022-02-11; known ransomware use
- EPSS: 99.91% (percentile 100.0)
- Unvetted proof-of-concept code on GitHub: 3 GitHub proofs of concept · 1 Nuclei template (first 2022-01-11)
- CISA SSVC: exploitation active, automatable yes, technical impact total (assessed 2025-02-04)
- Weakness: CWE-121
- Published: 2021-12-08

## Affected versions

- SonicWall SonicWall SMA100: affected 10.2.0.8-37sv and earlier; 10.2.1.1-19sv and earlier; 10.2.1.2-24sv and earlier

A version outside these ranges is not a statement that it is unaffected.

## References

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

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
