PoC Monitor
← All CVEs
CVE-2021-20038published 8 Dec 2021 09:55 UTCData: JSON · API

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.

First public PoC 34 daysafter publication · 11 Jan 2022
Public PoCs32 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-121
CISA KEV 28 Jan 202251 days after publication · ransomware use known

Timeline

Days relative to CVE publication
t=0+7+14+21+28+35+42+49CVE published8 Dec 2021 · t = 0First public PoC11 Jan 2022 · t+34dAdded to CISA KEV28 Jan 2022 · t+51d

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: SonicWall SMA100 Stack - Buffer Overflow/Remote Code Executionunknown14 Nov 2026

PoC characteristics

What to hunt for in your logs · from 2 PoC repos

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.

GET /cgi-bin/jarrewrite.sh
(?i)^/cgi-bin/jarrewrite\.sh(?:[?#].*)?$
GET /cgi-bin/welcome
(?i)^/cgi-bin/welcome(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /cgi-bin/jarrewrite.sh
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;)
GET /cgi-bin/welcome
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.

GET /cgi-bin/jarrewrite.sh
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
GET /cgi-bin/welcome
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