{"schemaVersion":3,"id":"CVE-2021-20039","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Improper neutralization of special elements in the SMA100 management interface '/cgi-bin/viewcert' POST http method allows a remote authenticated attacker to inject arbitrary commands as a 'nobody' user. This vulnerability affected SMA 200, 210, 400, 410 and 500v appliances.","dates":{"published":"2021-12-08T09:55:21.000Z","modified":"2025-09-05T17:09:47.136Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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":9,"severity":"high","vector":"AV:N/AC:L/Au:S/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.78746,"percentile":0.99589,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.78746},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.78746,"percentile":0.99589}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.78746,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.78746,"percentile":0.99589}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_3B0D1B7319E56E2D","name":"Exploit Reference (attackerkb.com)","source":"reference","url":"https://attackerkb.com/topics/9szJhq46lw/cve-2021-20039/rapid7-analysis","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_40BC12D982ED8DA0","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/165563/SonicWall-SMA-100-Series-Authenticated-Command-Injection.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_LINUX_HTTP_SONICWALL_CVE_2021_20039","name":"SonicWall SMA 100 Series Authenticated Command Injection","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/linux/http/sonicwall_cve_2021_20039.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":true,"exploitdb":null,"metasploit":{"fullname":"exploit/linux/http/sonicwall_cve_2021_20039","rank":"600","rankName":"excellent","postAuth":true,"check":true,"stability":["crash-safe"],"sideEffects":["ioc-in-logs","artifacts-on-disk"],"reliability":["repeatable-session"]}}],"exploitCount":3,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.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":"9.0.0.11-31sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.11-31sv | 10.2.0.8-37sv | 10.2.1.1-19sv","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":"9.0.0.11-31sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.11-31sv | 10.2.0.8-37sv | 10.2.1.1-19sv","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":"9.0.0.11-31sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.11-31sv | 10.2.0.8-37sv | 10.2.1.1-19sv","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":"9.0.0.11-31sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.11-31sv | 10.2.0.8-37sv | 10.2.1.1-19sv","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":"9.0.0.11-31sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.0.8-37sv","noFixRecorded":false,"fixedIn":null},{"text":"10.2.1.1-19sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0.0.11-31sv | 10.2.0.8-37sv | 10.2.1.1-19sv","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":"9.0.0.11-31sv and earlier","noFixRecorded":false,"fixedIn":null},{"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":"9.0.0.11-31sv and earlier | 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":"http://packetstormsecurity.com/files/165563/SonicWall-SMA-100-Series-Authenticated-Command-Injection.html","label":"packetstormsecurity.com/files/165563/SonicWall-SMA-100-Series-Authenticated-Command-Injection.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://attackerkb.com/topics/9szJhq46lw/cve-2021-20039/rapid7-analysis","label":"attackerkb.com/topics/9szJhq46lw/cve-2021-20039/rapid7-analysis","hostname":"attackerkb.com","tags":["Exploit"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-12-08T09:55:21.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-09-05T17:09:47.136Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T05:25:08.378Z","stale":false,"partial":false}}