Wavense
VulnerabilitiesVendorsMy Stack
Wavense© 2026 Wavense. All rights reserved.Privacy PolicyTerms & Conditions
Vulnerabilities/CVE-2021-20038
Vulnerability dossier

CVE-2021-20038

SMA100 Apache httpd mod_cgi Stack Buffer Overflow

VendorsonicwallPublishedDec 7, 2021SourceNVDWeaknessCWE-121
Act now

Actively exploited in the wild. Patch or mitigate immediately — don't wait for a maintenance window.

⚙ WeaponizedMetasploit module availableopen ↗
Severity
Critical · 9.8
CVSS base score
Exploitation
In the wild
CISA KEV · Metasploit
Predicted risk
100% model
EPSS forecast — overtaken by confirmed exploitation
Exposure
Internet-facing
Exploitable remotely, no login, no user action
01

What's the risk?

An unauthenticated attacker, remotely over the network, with no user interaction, can fully compromise the system — steal data, tamper with it and take it offline.

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.

How it's exploitedMITRE ATT&CK · inferred from weakness & vector
Initial Access
T1190Exploit Public-Facing Application

Inferred from the weakness type (CWE) and how the flaw is reached — the techniques an attacker would chain to exploit this. Real-world corroboration appears here as threat intel is folded in.

02

Who's exploiting it?

Corroborated threat activity referencing this CVE — with source and confidence, not inference.

Confirmed exploited in the wild. CISA KEV · catalogued Jan 28, 2022
campaignRansomware campaigns90CISA KEV

Named threat actors and observed ATT&CK techniques appear here as intel feeds are folded in — the ATT&CK chain above stays inferred until then.

03

Are we affected?

15
  • Affectedsonicwall · sma_200_firmware
10.2.1.2-24sv
  • Affectedsonicwall · sma_200_firmware10.2.1.1-19sv
  • Affectedsonicwall · sma_200_firmware10.2.0.8-37sv
  • Affectedsonicwall · sma_210_firmware10.2.1.1-19sv
  • Affectedsonicwall · sma_210_firmware10.2.0.8-37sv
  • Affectedsonicwall · sma_210_firmware10.2.1.2-24sv
  • Affectedsonicwall · sma_400_firmware10.2.0.8-37sv
  • Affectedsonicwall · sma_400_firmware10.2.1.2-24sv
  • Affectedsonicwall · sma_400_firmware10.2.1.1-19sv
  • Affectedsonicwall · sma_410_firmware10.2.1.1-19sv
  • Affectedsonicwall · sma_410_firmware10.2.0.8-37sv
  • Affectedsonicwall · sma_410_firmware10.2.1.2-24sv
  • Affectedsonicwall · sma_500v_firmware10.2.0.8-37sv
  • Affectedsonicwall · sma_500v_firmware10.2.1.1-19sv
  • Affectedsonicwall · sma_500v_firmware10.2.1.2-24sv
  • 04

    What to do

    Generated by Wavense from the CVE record — an immediate mitigation and the permanent fix.

    1. !

      Mitigate now

      As an interim measure, restrict network access to the SMA appliance's administrative interfaces and HTTPD service from untrusted networks using firewall rules. Deploying a Web Application Firewall (WAF) to inspect and filter requests targeting mod_cgi can help block exploit attempts. Enhance monitoring for suspicious HTTP requests and unusual process activity on the appliance that could indicate exploitation.

    2. ✓

      Permanent fix

      The permanent resolution involves upgrading the affected SMA 200, 210, 400, 410, and 500v appliances. Users should upgrade their firmware to versions newer than 10.2.0.8-37sv, 10.2.1.1-19sv, and 10.2.1.2-24sv, following vendor guidance. Consult official SMA documentation for the latest patched firmware releases to ensure full remediation of this vulnerability.

    Technical details— weakness, CVSS vector & calculator, related CVEs

    Business impact

    A remote, unauthenticated attacker can exploit this vulnerability to achieve arbitrary code execution on the SMA appliance, running as the 'nobody' user. This grants an initial foothold, enabling further privilege escalation, data exfiltration, or disruption of the appliance's services. Successful exploitation poses a critical risk to the confidentiality, integrity, and availability of the affected system and potentially the network it secures.

    Weakness

    2
    CWE-121Common Weakness Enumeration · MITRE definitionCWE-787Common Weakness Enumeration · MITRE definition

    CVSS 3.1 details

    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    0.0
    / 10.0 base
    Critical severity
    CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Exploitability metrics
    Attack VectorAV
    Remotely exploitable across a network
    Attack ComplexityAC
    No special conditions required
    Privileges RequiredPR
    No authorization needed
    User InteractionUI
    No user participation needed
    Impact metrics
    ScopeS
    Impact confined to the vulnerable component
    ConfidentialityC
    Total loss of confidentiality
    IntegrityI
    Total loss of integrity
    AvailabilityA
    Total loss of availability

    Related vulnerabilities

    Other CVEs affecting sma 200 firmware

    NVD
    9.8Critical
    CVE-2021-20028KEV

    Improper neutralization of a SQL Command leading to SQL Injection vulnerability impacting end-of-life Secure Remote Access (SRA) products, specifically the SRA appliances running all 8.x firmware and 9.0.0.9-26sv or earlier

    sonicwallCWE-89SQL InjectionNetworkLow effortNo authNo interactionCIA
    2021-08-04
    NVD
    9.8Critical
    CVE-2021-20016KEV

    A SQL-Injection vulnerability in the SonicWall SSLVPN SMA100 product allows a remote unauthenticated attacker to perform SQL query to access username password and other session related information. This vulnerability impacts SMA100 build version 10.x.

    sonicwallCWE-89SQL InjectionNetworkLow effortNo authNo interactionCIA
    2021-02-04
    NVD
    9.1Critical
    CVE-2024-38475KEVExploit likely

    Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected. Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.

    sonicwallCWE-116Improper EncodingNetworkLow effortNo authNo interactionCIA
    2024-07-01
    NVD
    7.2High
    CVE-2023-44221KEVExploit likely

    Improper neutralization of special elements in the SMA100 SSL-VPN management interface allows a remote authenticated attacker with administrative privilege to inject arbitrary commands as a 'nobody' user, potentially leading to OS Command Injection Vulnerability.

    sonicwallCWE-78OS Command InjectionNetworkLow effortAdmin privNo interactionCIA
    2023-12-05
    NVD
    6.5Medium
    CVE-2021-20035KEV

    Improper neutralization of special elements in the SMA100 management interface allows a remote authenticated attacker to inject arbitrary commands as a 'nobody' user which potentially leads to DoS.

    sonicwallCWE-78OS Command InjectionNetworkLow effortLow privNo interactionCIA
    2021-09-27
    NVD
    4.5Medium
    CVE-2025-40603

    A potential exposure of sensitive information in log files in SonicWall SMA100 Series appliances may allow a remote, authenticated administrator, under certain conditions to view partial users credential data.

    sonicwallCWE-532Information Leak Through LogsNetworkLow effortAdmin privUser neededCIA
    2025-10-31
    0.0
    / 10.0 base
    Critical severity
    Key facts
    CVE ID
    CVE-2021-20038
    Published
    Dec 7, 2021
    Last modified
    Oct 31, 2025
    CVSS
    9.8 (v3.1)
    EPSS
    99.91%
    In CISA KEV
    Yes
    Confidence
    100/100
    Weakness
    CWE-121
    Timeline
    1. Dec 7, 2021Published to NVDNVD
    2. Oct 31, 2025Record last modifiedNVD
    3. Oct 3, 2026AI analysis generatedWavense
    View on NVD