CVE-2021-20038
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
99.912%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-01-28 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-121: Stack-based Buffer Overflow
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability |
|---|---|
| Vendor / product | SonicWall / SMA 100 Appliances |
| Date added | 2022-01-28 |
| Federal remediation due date | 2022-02-11 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-02-04 |
Timeline
- 2021-12-08Published by the CNA09:55 UTC
- 2022-01-28Added to the CISA KEV catalog51 days after publication
- 2025-02-04CISA SSVC decision recorded1154 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2021-20038: SonicWall SMA100 Stack - Buffer Overflow/Remote Code Execution
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| sonicwall sma_200_firmware | 10.2.0.8-37svno fix listed10.2.1.1-19svno fix listed10.2.1.2-24svno fix listed | not listednot listednot listed |
| sonicwall sma_210_firmware | 10.2.0.8-37svno fix listed10.2.1.1-19svno fix listed10.2.1.2-24svno fix listed | not listednot listednot listed |
| sonicwall sma_400_firmware | 10.2.0.8-37svno fix listed10.2.1.1-19svno fix listed10.2.1.2-24svno fix listed | not listednot listednot listed |
| sonicwall sma_410_firmware | 10.2.0.8-37svno fix listed10.2.1.1-19svno fix listed10.2.1.2-24svno fix listed | not listednot listednot listed |
| sonicwall sma_500v_firmware | 10.2.0.8-37svno fix listed10.2.1.1-19svno fix listed10.2.1.2-24svno fix listed | not listednot listednot listed |
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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-20038'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-20038'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-20038'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-20038'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-20038'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).