CVE-2021-31181 Microsoft SharePoint Remote Code Execution Vulnerability
Attackers can execute arbitrary code on Microsoft SharePoint servers, potentially compromising the entire platform.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-31181?
CVE-2021-31181 is a high-severity code injection vulnerability in Microsoft Sharepoint Enterprise Server, published on 11 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Microsoft SharePoint Remote Code Execution Vulnerability
Weakness: CWE-94
Which versions are affected by CVE-2021-31181?
It affects 3 products.
Products include Microsoft Sharepoint Enterprise Server, Microsoft Sharepoint Foundation, Microsoft Sharepoint Server.
How do I fix CVE-2021-31181?
No fix has been published for CVE-2021-31181 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-31181 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-31181 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in Microsoft Sharepoint Enterprise Server
- CVE-2019-0604 Microsoft SharePoint Remote Code Execution
- CVE-2023-24955 Microsoft SharePoint Server Code Injection
- CVE-2025-49706 Microsoft SharePoint Improper Authentication
- CVE-2020-1210 Microsoft SharePoint Remote Code Execution Vulnerability
- CVE-2020-1595 Microsoft SharePoint Remote Code Execution Vulnerability
Sources
Also known as GHSA-jv6v-h246-28v4.