{"schemaVersion":3,"id":"CVE-2021-31181","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Microsoft SharePoint Remote Code Execution Vulnerability","dates":{"published":"2021-05-11T19:11:30.000Z","modified":"2025-02-28T20:29:15.430Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC: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/E:U/RL:O/RC:C","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":6.5,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.29011,"percentile":0.98149,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-1.0340000000000016,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.30045},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.29011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.29011,"percentile":0.98149}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.30045,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.288,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.29011,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.29011,"percentile":0.98149}]},"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_8C4014A3492F3102","name":"Exploit Reference (packetstorm.news)","source":"reference","url":"https://packetstorm.news/files/id/163208","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_2972DC52DB58FCBD","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/163208/Microsoft-SharePoint-Unsafe-Control-And-ViewState-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"MSF_EXPLOIT_WINDOWS_HTTP_SHAREPOINT_UNSAFE_CONTROL","name":"Microsoft SharePoint Unsafe Control and ViewState RCE","source":"metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploit/windows/http/sharepoint_unsafe_control.rb","maturity":"weaponized","reliabilityScore":1,"verified":true,"type":"remote","platforms":[],"requiresAuth":true,"exploitdb":null,"metasploit":{"fullname":"exploit/windows/http/sharepoint_unsafe_control","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-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"microsoft","product":"microsoft sharepoint enterprise server 2016","name":"Microsoft SharePoint Enterprise Server 2016","label":"microsoft sharepoint enterprise server 2016","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 16.0.0, < 16.0.5161.1000","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 16.0.0, < 16.0.5161.1000","eol":null,"hubHref":"/vendor/microsoft/microsoft_sharepoint_enterprise_server_2016"},{"vendor":"microsoft","product":"microsoft sharepoint foundation 2013 service pack 1","name":"Microsoft SharePoint Foundation 2013 Service Pack 1","label":"microsoft sharepoint foundation 2013 service pack 1","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 15.0.0, < 15.0.5345.1000","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 15.0.0, < 15.0.5345.1000","eol":null,"hubHref":"/vendor/microsoft/microsoft_sharepoint_foundation_2013_service_pack_1"},{"vendor":"microsoft","product":"microsoft sharepoint server 2019","name":"Microsoft SharePoint Server 2019","label":"microsoft sharepoint server 2019","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 16.0.0, < 16.0.10374.20000","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 16.0.0, < 16.0.10374.20000","eol":null,"hubHref":"/vendor/microsoft/microsoft_sharepoint_server_2019"},{"vendor":"microsoft","product":"sharepoint_enterprise_server","name":"sharepoint enterprise server","label":"sharepoint_enterprise_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2016","noFixRecorded":false,"fixedIn":null}],"versionsText":"2016","eol":null,"hubHref":"/vendor/microsoft/sharepoint_enterprise_server"},{"vendor":"microsoft","product":"sharepoint_foundation","name":"sharepoint foundation","label":"sharepoint_foundation","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2013:sp1","noFixRecorded":false,"fixedIn":null}],"versionsText":"2013:sp1","eol":null,"hubHref":"/vendor/microsoft/sharepoint_foundation"},{"vendor":"microsoft","product":"sharepoint_server","name":"sharepoint server","label":"sharepoint_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2019","noFixRecorded":false,"fixedIn":null}],"versionsText":"2019","eol":null,"hubHref":"/vendor/microsoft/sharepoint_server"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31181","label":"portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31181","hostname":"portal.msrc.microsoft.com","tags":["X Refsource MISC","Patch","Vendor Advisory"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-573/","label":"www.zerodayinitiative.com/advisories/ZDI-21-573/","hostname":"www.zerodayinitiative.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"http://packetstormsecurity.com/files/163208/Microsoft-SharePoint-Unsafe-Control-And-ViewState-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/…","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://packetstorm.news/files/id/163208","label":"packetstorm.news/files/id/163208","hostname":"packetstorm.news","tags":["Exploit"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-05-11T19:11:30.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-02-28T20:29:15.430Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":51,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T09:22:23.125Z","stale":false,"partial":false}}