What’s Vulnerable › Vulnerabilities
CVE-2021-31181: Microsoft SharePoint Remote Code Execution Vulnerability
- Severity: medium (CVSS 6.5 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 29.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-05-11 · updated 2026-06-17
- Weakness: CWE-94
Description
Microsoft SharePoint Remote Code Execution Vulnerability
Affected products
- Microsoft SharePoint Server: 2016
- Microsoft SharePoint Foundation 2013 Service Pack 1: 2013-sp1
- Microsoft SharePoint Server: 2019
- Microsoft Sharepoint Enterprise Server 2016: from 16.0.0 before 16.0.5161.1000 — fixed in 16.0.5161.1000
- Microsoft SharePoint Foundation 2013 Service Pack 1: from 15.0.0 before 15.0.5345.1000 — fixed in 15.0.5345.1000
- Microsoft SharePoint Server: from 16.0.0 before 16.0.10374.20000 — fixed in 16.0.10374.20000
How to fix
Upgrade to a fixed version: Microsoft Sharepoint Enterprise Server 2016 16.0.5161.1000; Microsoft SharePoint Foundation 2013 Service Pack 1 15.0.5345.1000; Microsoft SharePoint Server 16.0.10374.20000. Check the vendor advisory for mitigations.
References
- http://packetstormsecurity.com/files/163208/Microsoft-SharePoint-Unsafe-Control-And-ViewState-Remote-Code-Execution.html
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31181
- https://www.zerodayinitiative.com/advisories/ZDI-21-573/
- http://packetstormsecurity.com/files/163208/Microsoft-SharePoint-Unsafe-Control-And-ViewState-Remote-Code-Execution.html
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31181
- https://www.zerodayinitiative.com/advisories/ZDI-21-573/
- https://packetstorm.news/files/id/163208
Get alerted when CVE-2021-31181 or the next vulnerability affects your stack