CVE-2021-20038: A Stack-based buffer overflow vulnerability in SMA100 Apache httpd server's mod_cgi module environment variables allows a remote unauthen…
CVE-2021-20038 affects 49 listed versions of SonicWall SMA 200 firmware, SonicWall SMA 400 firmware, SonicWall SMA 210 firmware and 2 more products in the Dawnsentry catalogue. It is known to be exploited in the wild.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
SonicWall SMA 200 firmware
11 of 22 listed versions are affected. No fixed release is named. The newest release, 10.2.2.2-92sv, is not affected.
10.2.1.2-24sv 10.2.1.1-19sv 10.2.1.0-17sv 10.2.0.9-41sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3
SonicWall SMA 400 firmware
11 of 22 listed versions are affected. No fixed release is named. The newest release, 10.2.2.2-92sv, is not affected.
10.2.1.2-24sv 10.2.1.1-19sv 10.2.1.0-17sv 10.2.0.9-41sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3
SonicWall SMA 210 firmware
9 of 22 listed versions are affected. No fixed release is named. The newest release, 10.2.2.3, is not affected.
10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3
SonicWall SMA 410 firmware
9 of 22 listed versions are affected. No fixed release is named. The newest release, 10.2.2.3, is not affected.
10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3
SonicWall SMA 500v firmware
9 of 22 listed versions are affected. No fixed release is named. The newest release, 10.2.2.3, is not affected.
10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by Sonicwall on 8 December 2021. Last changed 17 June 2026. CISA lists it as used in ransomware campaigns. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2021-20038 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.