← Vulnerability feed

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.

8.1 CVSS 3.1 High EPSS 48% · top 1.2% CWE-94 · Code injection
8.1CVSS 3.1 base score, v2 6.5
48%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
4References
17 Jun 2026Last modified by NVD

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

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

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

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.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-58644Microsoft SharePoint deserialization flaw allows remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an unauthenticated network attacker execute code. The flaw is rated CVSS 9.8 critica…KEVEPSS 16%analysed9.8CVE-2026-56164Microsoft SharePoint Server missing authentication allows privilege elevationMicrosoft Office SharePoint Server contains a missing authentication flaw in a critical function (CWE-306), letting an unauthenticated attacker reach…KEVEPSS 1.0%analysed9.8CVE-2026-50522Microsoft SharePoint deserialization flaw allows remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an unauthorized attacker run code over the network. The flaw is remotely reachable w…KEVEPSS 3.0%analysed9.8CVE-2026-20963Microsoft SharePoint deserialization flaw allows remote code executionMicrosoft SharePoint Server deserializes untrusted data, letting an unauthorized attacker run code over the network. The flaw is remotely reachable w…KEVEPSS 30%analysed9.8CVE-2025-53770Microsoft SharePoint Server deserialization RCE under active exploitationOn-premises Microsoft SharePoint Server deserializes untrusted data, letting an unauthenticated network attacker run code on the server. Microsoft st…KEVEPSS 100%analysed9.8CVE-2023-29357Microsoft SharePoint Server elevation of privilege via authentication bypassCVE-2023-29357 is a critical elevation of privilege flaw in Microsoft SharePoint Server. The CVSS vector shows it is network reachable with no privil…KEVEPSS 100%analysed9.8CVE-2019-0604Microsoft SharePoint application package markup validation RCEMicrosoft SharePoint fails to validate the source markup of an application package, allowing crafted packages to execute code on the server. This is …KEVEPSS 100%analysed9.1CVE-2026-55040Microsoft SharePoint weak authentication allows network security feature bypassMicrosoft SharePoint Server contains a weak authentication flaw (CWE-1390) that lets an unauthorized attacker bypass a security feature over the netw…KEVEPSS 18%analysed

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.