Security Advisory

CVE-2021-20038: SonicWall SMA100 Overflow (KEV)

Last updated:
  • CVE-2021-20038

CVE-2021-20038 is an unauthenticated stack-based buffer overflow in the Apache httpd mod_cgi handling of SonicWall SMA100 appliances that can let a remote attacker run code as the nobody user. NVD scores it 9.8 and CISA KEV lists known ransomware use. SonicWall fixed it in SMA100 firmware 10.2.0.9-41sv and 10.2.1.3-27sv, with no workaround.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

99.9%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-20038 · Source: NVD (Primary CVSS v3.1)

Affected components

ComponentCPEVersion range
SonicWall SMA 200, 210, 400, 410 and SMA 500v (ESX, Hyper-V, KVM, AWS, Azure)cpe:2.3:o:sonicwall:sma_200_firmware:*:*:*:*:*:*:*:*10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier; fixed in 10.2.0.9-41sv and 10.2.1.3-27sv (SonicWall SNWLID-2021-0026). 9.0.0 firmware support ended 2021-10-31

What does this mean for affected devices?

NVD describes CVE-2021-20038 as "a Stack-based buffer overflow vulnerability in SMA100 Apache httpd server's mod_cgi module environment variables" that "allows a remote unauthenticated attacker to potentially execute code as a 'nobody' user in the appliance". NVD's Primary score is CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), with a CVSS v2 score of 7.5; SonicWall and CISA-ADP also give 9.8. SonicWall assigns CWE-121 and NVD lists CWE-787 (NVD, CVE record).

Which SMA appliances and firmware are affected?

SonicWall's advisory SNWLID-2021-0026 of 2021-12-07 fixes eight SMA 100 flaws, CVE-2021-20038 to CVE-2021-20045, reported by Rapid7 and NCC Group. For this one it names the SMA 200, 210, 400, 410 and 500v on 10.2.0.8-37sv, 10.2.1.1-19sv and 10.2.1.2-24sv and earlier, and notes that SMA 100 units with the WAF licensed or enabled are also affected. The advisory states that support for 9.0.0 firmware ended on 2021-10-31 and that customers still on it should upgrade to the latest 10.2.x.

Which firmware fixes it?

SonicWall names 10.2.0.9-41sv and 10.2.1.3-27sv and lists no workaround. Note that 10.2.0.8-37sv and 10.2.1.1-19sv, the fixed builds for the command injection CVE-2021-20035, are affected here. SonicWall's September 2025 advisory SNWLID-2025-0015 recommends 10.2.2.2-92sv for the SMA 210, 410 and 500v and says the release "does not change the established End-of-Support (EOS) timeline" for the series. The class fix for this bug is in how to fix memory corruption in embedded firmware; limit what is reachable from the internet with CISA BOD 23-02 and internet-exposed management interfaces.

Is CVE-2021-20038 exploited?

Yes. SonicWall's 2022-04-21 revision removed its "no evidence" of exploitation line, noting that CISA lists CVE-2021-20038 among routinely exploited vulnerabilities. CISA added it to the KEV catalog on 2022-01-28 with the required action "Apply updates per vendor instructions." (due 2022-02-11) and records known ransomware campaign use; it is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.99912, the 99.97th percentile, in the 2026-11-24 dataset (FIRST EPSS). Other exploited SMA100 flaws: CVE-2021-20016 and CVE-2019-7481.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • NVD (Analyzed, published 2021-12-08): stack-based buffer overflow in SMA100 Apache httpd mod_cgi module environment variables, remote unauthenticated code execution as nobody; SMA 200, 210, 400, 410, 500v firmware 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier; Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; Primary CVSS v2 7.5; CISA-ADP Secondary 9.8; SonicWall CWE-121, NVD CWE-787; read 2026-11-25. — NVD
  • SonicWall SNWLID-2021-0026 (published 2021-12-07, updated 2022-04-28, read via the PSIRT site API 2026-11-25): CVE-2021-20038 to CVE-2021-20045; SMA-3217 unauthenticated stack-based buffer overflow CVSS 9.8, reported by Rapid7; SMA 200, 210, 400, 410, 500v; WAF licensed/enabled units impacted; impacted 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv; fixed 10.2.0.9-41sv, 10.2.1.3-27sv; workaround none; support for 9.0.0 firmware ended 10/31/2021, upgrade to latest 10.2.x; 2022-04-21 revision removed "no evidence of exploitation" line, CISA lists it among routinely exploited vulnerabilities. — SonicWall PSIRT SNWLID-2021-0026
  • SonicWall SNWLID-2025-0015 (published 2025-09-22, updated 2025-09-29, read 2026-11-25): SMA 100 10.2.2.2-92sv adds file checking to remove known rootkit malware; does not change the established End-of-Support (EOS) timeline; SonicWall strongly recommends SMA 210, 410 and 500v users upgrade to 10.2.2.2-92sv; affected 10.2.1.15-81sv and earlier. — SonicWall PSIRT SNWLID-2025-0015
  • CVE record: PUBLISHED, CNA SonicWall, published 2021-12-08; affected 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier; CISA-ADP CVSS 3.1 9.8, SSVC exploitation active. — CVE.org
  • KEV catalog 2026.11.24: dateAdded 2022-01-28, due 2022-02-11, required action "Apply updates per vendor instructions.", knownRansomwareCampaignUse Known, CWE-121; checked 2026-11-25. — CISA KEV
  • EPSS 0.99912, percentile 0.99967, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. SonicWall PSIRT advisory SNWLID-2021-0026
  3. SonicWall PSIRT advisory SNWLID-2025-0015 (SMA 100 10.2.2.2-92sv)
  4. CVE.org record CVE-2021-20038 (CNA: SonicWall)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which SMA100 firmware fixes CVE-2021-20038?

SonicWall names 10.2.0.9-41sv and 10.2.1.3-27sv for SMA 200, 210, 400, 410 and 500v. Builds 10.2.0.8-37sv, 10.2.1.1-19sv, 10.2.1.2-24sv and earlier are affected (per SonicWall SNWLID-2021-0026).

Is there a workaround for CVE-2021-20038?

No. SonicWall lists no workaround; the fix is the firmware update. Units with the WAF licensed or enabled are also affected (per SonicWall SNWLID-2021-0026).

Is CVE-2021-20038 used by ransomware groups?

Yes. CISA KEV marks known ransomware campaign use; CISA added it on 2022-01-28 and it is in catalog version 2026.11.24. FIRST EPSS gives 0.99912, the 99.97th percentile, in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS, as of 2026-11-25).

What else did SonicWall fix together with CVE-2021-20038?

Advisory SNWLID-2021-0026 fixes eight SMA 100 flaws, CVE-2021-20038 to CVE-2021-20045, reported by Rapid7 and NCC Group; the same builds 10.2.0.9-41sv and 10.2.1.3-27sv fix them (per SonicWall SNWLID-2021-0026).