{"schemaVersion":3,"id":"CVE-2021-20038","aliases":[],"status":"published","duplicateOf":null,"title":"SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability","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.","dates":{"published":"2021-12-08T09:55:20.000Z","modified":"2025-10-21T23:25:23.415Z","reserved":null,"kevAdded":["2022-01-28T00:00:00.000Z"],"kevDue":["2022-02-11T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99912,"percentile":0.99967,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.99912},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99912,"percentile":0.99967}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99912,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99912,"percentile":0.99967}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-01-28T00:00:00.000Z","dueDate":"2022-02-11T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability","description":"SonicWall SMA 100 devies are vulnerable to an unauthenticated stack-based buffer overflow vulnerability where exploitation can result in code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-20038","label":"nvd.nist.gov/vuln/detail/CVE-2021-20038"}],"vendor":"SonicWall","product":"SMA 100 Appliances","ransomware":true,"ransomwareUse":"Known","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2022-01-28T00:00:00.000Z","dueDate":"2022-02-11T00:00:00.000Z","requiredAction":"Apply updates per vendor instructions.","name":"SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability","description":"SonicWall SMA 100 devies are vulnerable to an unauthenticated stack-based buffer overflow vulnerability where exploitation can result in code execution.","notes":[{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2021-20038","label":"nvd.nist.gov/vuln/detail/CVE-2021-20038"}],"vendor":"SonicWall","product":"SMA 100 Appliances","ransomware":true,"ransomwareUse":"Known","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"known","sources":["cisa"]},"exploits":[{"id":"GITHUB_JBAINES-R7_BADBLOOD","name":"Badblood","source":"github","url":"https://github.com/jbaines-r7/badblood","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_9D2236A85CF2B421","name":"Exploit Reference (rapid7.com)","source":"reference","url":"https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-121","name":"Stack-based Buffer Overflow","description":"A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/121.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"sonicwall","product":"sma_200_firmware","name":"sma 200 firmware","label":"sma_200_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv","eol":null,"hubHref":"/vendor/sonicwall/sma_200"},{"vendor":"sonicwall","product":"sma_210_firmware","name":"sma 210 firmware","label":"sma_210_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv","eol":null,"hubHref":"/vendor/sonicwall/sma_210"},{"vendor":"sonicwall","product":"sma_400_firmware","name":"sma 400 firmware","label":"sma_400_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv","eol":null,"hubHref":"/vendor/sonicwall/sma_400"},{"vendor":"sonicwall","product":"sma_410_firmware","name":"sma 410 firmware","label":"sma_410_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv","eol":null,"hubHref":"/vendor/sonicwall/sma_410"},{"vendor":"sonicwall","product":"sma_500v_firmware","name":"sma 500v firmware","label":"sma_500v_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv | 10.2.1.1-19sv | 10.2.1.2-24sv","eol":null,"hubHref":"/vendor/sonicwall/sma_500v"},{"vendor":"sonicwall","product":"sonicwall sma100","name":"SonicWall SMA100","label":"sonicwall sma100","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"10.2.0.8-37sv and earlier","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv and earlier","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.2-24sv and earlier","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.0.8-37sv and earlier | 10.2.1.1-19sv and earlier | 10.2.1.2-24sv and earlier","eol":null,"hubHref":"/vendor/sonicwall/sonicwall_sma100"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026","label":"psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0026","hostname":"psirt.global.sonicwall.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/jbaines-r7/badblood","label":"github.com/jbaines-r7/badblood","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://www.rapid7.com/blog/post/2022/01/11/cve-2021-20038-42-sonicwall-sma-100-multiple-vulnerabilities-fixed-2/","label":"www.rapid7.com/blog/…","hostname":"www.rapid7.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-20038","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-12-08T09:55:20.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2022-01-28T00:00:00.000Z","label":"Added to CISA KEV","detail":"SonicWall SMA 100 Appliances Stack-Based Buffer Overflow Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2022-02-11T00:00:00.000Z","label":"CISA remediation due","detail":"Apply updates per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-10-21T23:25:23.415Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T04:44:38.731Z","stale":false,"partial":false}}