CVE-2021-40487 Microsoft SharePoint Server Remote Code Execution Vulnerability
Attackers can execute arbitrary code on Microsoft SharePoint Server via a code injection vulnerability, requiring immediate patching.
- 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-40487?
CVE-2021-40487 is a high-severity code injection vulnerability in Microsoft Sharepoint Enterprise Server, published on 13 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Microsoft SharePoint Server Remote Code Execution Vulnerability
Weakness: CWE-94
Which versions are affected by CVE-2021-40487?
It affects 3 products.
Products include Microsoft Sharepoint Enterprise Server, Microsoft Sharepoint Foundation, Microsoft Sharepoint Server.
How do I fix CVE-2021-40487?
No fix has been published for CVE-2021-40487 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-40487 being exploited?
There is no known exploitation of CVE-2021-40487 in the wild and no public exploit code.
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-w9qh-f4fr-cg94.