CVE-2021-20038 Details
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.
A stack-based buffer overflow vulnerability has been identified in the SonicWall SMA 100 series appliances, specifically in the Apache httpd server's mod_cgi module. This vulnerability allows a remote, unauthenticated attacker to execute code as the 'nobody' user on the affected appliance. The issue arises from the mod_cgi module improperly handling environment variables, leading to a buffer overflow on the stack. The vulnerability affects several firmware versions across the SMA 100 series, including SMA 200, 210, 400, 410, and 500v.
Users are advised to update to SonicWall's patched versions, specifically 10.2.0.9-41sv or 10.2.1.3-27sv.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038 | CISA-ADP | US Government Resource |
| https://github.com/jbaines-r7/badblood | CVE | ExploitThird Party Advisory |
| https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026 | CVE | Vendor Advisory |
| https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/ | CVE | ExploitThird Party Advisory |
| https://github.com/jbaines-r7/badblood | [email protected] | ExploitThird Party Advisory |
| https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026 | [email protected] | Vendor Advisory |
| https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/ | [email protected] | ExploitThird Party Advisory |
This CVE is in CISA's Known Exploited Vulnerabilities Catalog
Reference CISA's BOD 22-01 and Known Exploited Vulnerabilities Catalog for further guidance and requirements.
| Vulnerability Name | Date Added | Due Date | Required Action |
|---|---|---|---|
| SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability | Jan 28, 2022 | Feb 11, 2022 | Apply updates per vendor instructions. |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sonicwall sma 200 firmware | 10.2.0.8-37sv 10.2.1.1-19sv 10.2.1.2-24sv |
CPE
Remediation
| |
| sonicwall sma 200 | All versions |
CPE
Remediation
| |
| sonicwall sma 210 firmware | 10.2.0.8-37sv 10.2.1.1-19sv 10.2.1.2-24sv |
CPE
Remediation
| |
| sonicwall sma 210 | All versions |
CPE
Remediation
| |
| sonicwall sma 410 firmware | 10.2.0.8-37sv 10.2.1.1-19sv 10.2.1.2-24sv |
CPE
Remediation
| |
| sonicwall sma 410 | All versions |
CPE
Remediation
| |
| sonicwall sma 400 firmware | 10.2.0.8-37sv 10.2.1.1-19sv 10.2.1.2-24sv |
CPE
Remediation
| |
| sonicwall sma 400 | All versions |
CPE
Remediation
| |
| sonicwall sma 500v firmware | 10.2.0.8-37sv 10.2.1.1-19sv 10.2.1.2-24sv |
CPE
Remediation
| |
| sonicwall sma 500v | All versions |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Oct 31, 2025 | Modified Analysis | [email protected] |
| Oct 22, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Oct 21, 2025 | CVE Modified | CISA-ADP |
| Jul 30, 2025 | Modified Analysis | [email protected] |
| Jul 30, 2025 | CVE Modified | CISA-ADP |
| Mar 14, 2025 | Modified Analysis | [email protected] |
| Feb 4, 2025 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| May 13, 2022 | Modified Analysis | [email protected] |
| Apr 29, 2022 | CVE Modified | [email protected] |
| Dec 10, 2021 | Initial Analysis | [email protected] |