SonicWall SMA100
SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability
Edge device · Firewall / VPNknown edge product: SonicWall SonicWall SMA100 SonicWall SMA 100 Appliances (high confidence)
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.
Timeline
Days relative to CVE publicationFirst public PoC 34 days after publication; added to CISA KEV 51 days after publication. First PoC: jbaines-r7/badblood (created 11 Jan 2022, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 2 pending · 1 informational
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jbaines-r7/badblood | 11 Jan 2022 +34 d | 95 | PoC |
| vesperp/CVE-2021-20038-SonicWall-RCE | 8 Aug 2022 +243 d | 1 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ExploitPwner/CVE-2021-20038-Mass-RCE-SonicWall | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| XmasSnowREAL/CVE-2021-20038-Mass-RCE | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| anir0y/sonicwall-audit-toolkit | 23 Feb 2026 +4.2 y | 0 | Informational · list |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: SonicWall SMA100 Stack - Buffer Overflow/Remote Code Execution | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /cgi-bin/jarrewrite.sh
- PoC User-Agent
() {var}; echo ; /bin/bash -c id- Seen in
- 1 repo: vesperp/CVE-2021-20038-SonicWall-RCE
- Evidence
- vesperp/CVE-2021-20038-SonicWall-RCE/SonicWall-rebuild.py:25 vesperp/CVE-2021-20038-SonicWall-RCE/SonicWall-rebuild.py:43
GET /cgi-bin/welcome
- Seen in
- 1 repo: jbaines-r7/badblood
- Evidence
- jbaines-r7/badblood/README.md:74
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/jarrewrite\.sh(?:[?#].*)?$
(?i)^/cgi-bin/welcome(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-20038 SonicWall SonicWall SMA100 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/jarrewrite.sh"; reference:url,poc.griffinguard.io/cve/CVE-2021-20038; classtype:web-application-attack; sid:9674794; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-20038 SonicWall SonicWall SMA100 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cgi-bin/welcome"; reference:url,poc.griffinguard.io/cve/CVE-2021-20038; classtype:web-application-attack; sid:9171670; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: SonicWall SonicWall SMA100 exploit attempt (CVE-2021-20038)
id: gg-pocmon-cve-2021-20038-9674794
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-20038. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-20038
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/jarrewrite.sh'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.20038
title: SonicWall SonicWall SMA100 exploit attempt (CVE-2021-20038)
id: gg-pocmon-cve-2021-20038-9171670
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-20038. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-20038
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cgi-bin/welcome'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2021.20038