Vulnerability record · CVE-2021-40487 · published 13 October 2021
CVE-2021-40487: Microsoft SharePoint Server code injection enables remote code execution
Microsoft · Sharepoint Enterprise Server
CVE-2021-40487 is a remote code execution vulnerability in Microsoft SharePoint Server caused by code injection (CWE-94). It matters because SharePoint is widely deployed for collaboration and document handling, and a successful exploit gives an authenticated low-privileged user code execution on the server. The record gives no detail on the specific vulnerable component or affected versions.
Description
Microsoft SharePoint Server Remote Code Execution Vulnerability
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Automated analysis
high priorityRemote code execution with high confidentiality and integrity impact and a high EPSS score, though it requires authenticated access and is not in KEV.
What it is
CVE-2021-40487 is a remote code execution vulnerability in Microsoft SharePoint Server caused by code injection (CWE-94). It matters because SharePoint is widely deployed for collaboration and document handling, and a successful exploit gives an authenticated low-privileged user code execution on the server. The record gives no detail on the specific vulnerable component or affected versions.
Impact
An attacker who can authenticate to SharePoint gains remote code execution on the server, with high impact to confidentiality and integrity. Availability is not affected per the CVSS vector.
Attack surface
Reachable over the network (AV:N) with low attack complexity and no user interaction, but it requires low privileges (PR:L), meaning the attacker needs a valid authenticated account on the SharePoint instance. No pre-existing user action is needed beyond authentication.
Exploitation
Not listed in CISA KEV and no ransomware use is documented, but EPSS is high at roughly 0.48 (98.8th percentile), indicating elevated likelihood of exploitation activity. References are limited to the Microsoft patch advisory and a ZDI advisory, with no public exploit detail in the record.
What to do
- Apply the Microsoft security update referenced in the MSRC advisory for CVE-2021-40487 as the first action.
- Restrict and review SharePoint site membership so only users who need access hold accounts, reducing the pool of authenticated attackers who can reach the flaw.
- Enforce least privilege on SharePoint service and application pool accounts to limit what code execution achieves.
- Monitor vendor guidance and re-check the advisory for any updated affected-version or workaround information, since the record does not list versions.
Detection
- Monitor SharePoint server and IIS logs for unusual POST requests or web shell creation in SharePoint directories.
- Alert on unexpected child processes spawned by SharePoint worker processes (w3wp.exe) or the SharePoint timer service.
- Watch for new or modified files under SharePoint web application paths and layout directories.
- Correlate authentication events with subsequent anomalous server-side activity from the same account.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-40487 | PatchVendor Advisory |
| https://www.zerodayinitiative.com/advisories/ZDI-21-1225/ | Third Party AdvisoryVDB Entry |
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-40487 | PatchVendor Advisory |
| https://www.zerodayinitiative.com/advisories/ZDI-21-1225/ | Third Party AdvisoryVDB Entry |
Track CVE-2021-40487 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-40487), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.