Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🛡️
CISA KEV · ACTIVELY EXPLOITED
CRITICAL severity

CVE-2021-20038

CRITICAL

CVE-2021-20038 is a critical-severity (CVSS 9.8) CWE-121 vulnerability in sonicwall sma 200 firmware. It is in CISA's Known Exploited Vulnerabilities catalog (added 2022-01-28) and has been used in ransomware campaigns — treat it as actively exploited and patch now. O3 Security detects and blocks CVE-2021-20038 exploitation at runtime via eBPF exploit-chain detection and L7 egress monitoring, even on unpatched systems.

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…

Published
Dec 8, 2021
Updated
Jun 17, 2026
Affected
5 products
Patched
See advisory
Exploits
8 known
Exploitation data as of Aug 27, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

Exploitation Status

Actively exploited in the wild

  • Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2022-01-28 — including use in ransomware campaigns. Federal agencies were required to remediate by 2022-02-11.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2021-20038.

EPSS Exploitation Probability

via FIRST.org ↗
99.9%probability of exploitation in next 30 days
Very High Risk+0.01%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
92.6%95.1%97.5%100.0%94.3%99.9%Feb 26Jun 26Aug 26

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

CVE-2021-20038 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE sits: patch-first territory.

Where this sits among everything scored

Of 368,770 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Description

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.

Affected Products

5 products · 15 configurations
OS
sma 200 firmwaresonicwall
3 versions
10.2.0.8-37sv10.2.1.1-19sv10.2.1.2-24sv
OS
sma 210 firmwaresonicwall
3 versions
10.2.0.8-37sv10.2.1.1-19sv10.2.1.2-24sv
OS
sma 400 firmwaresonicwall
3 versions
10.2.0.8-37sv10.2.1.1-19sv10.2.1.2-24sv
OS
sma 410 firmwaresonicwall
3 versions
10.2.0.8-37sv10.2.1.1-19sv10.2.1.2-24sv
OS
sma 500v firmwaresonicwall
3 versions
10.2.0.8-37sv10.2.1.1-19sv10.2.1.2-24sv
Exploits & PoCs
8

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

Detection & mitigation playbook

Vendor / appliance
  1. Detect

    Inventory every sonicwall sma 200 firmware deployment and check each version against the affected-products list above. Because the exploit targets the running system rather than your application code, also watch for remote code execution at the network and runtime layer — O3 flags the exploit behaviour from runtime telemetry and egress traffic even before a vulnerable build is confirmed.

  2. Remediation status

    No patch has shipped for CVE-2021-20038 yet — track the sonicwall sma 200 firmware advisory for a fixed release and apply the workarounds below in the meantime.

  3. Mitigate without a patch

    Cut exposure now: restrict the management/admin interface to trusted networks, segment the device, and apply the vendor's recommended configuration mitigations and any WAF/IPS signature. O3's runtime protection blocks the exploit chain at execution, holding the line on unpatched or end-of-life systems until you can patch.

  4. How O3 protects you

    O3 detects and blocks CVE-2021-20038 exploitation at runtime: eBPF exploit-chain detection, plus L7 egress monitoring that catches the post-exploitation callback and severs the attacker's outbound channel.

Tailored to CVE-2021-20038. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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.
O3 Security · Runtime Protection

Is CVE-2021-20038 being exploited in your environment?

O3's eBPF runtime sensors and L7 egress monitoring detect and block the CVE-2021-20038 exploit chain at execution — protecting unpatched and end-of-life systems until the vendor patch is applied.

CVE-2021-20038: Sma 200 Firmware… | O3 Security