Skip to content
Emerging threatsHigh

CVE-2021-31181Sharepoint Enterprise Server Code Injection

Microsoft SharePoint Remote Code Execution Vulnerability

Published May 11, 2021 · Updated Feb 28, 2025

Key Facts

Patch immediately
  • CVE-2021-31181 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting Sharepoint Enterprise Server (Microsoft), Sharepoint Foundation (Microsoft), Sharepoint Server (Microsoft).
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 29% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Sharepoint Foundation 15.0.5345.1000, Sharepoint Server 16.0.10374.20000, Sharepoint Server 16.0.5161.1000.
  • Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.

Scores

CVSS v3.1

8.8

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

29%

Higher than 98.1% of all scored CVEs

Exploit maturity

Weaponized

ATLAS score

51/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Weaponized

Public exploit code

2

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

Microsoft SharePoint Remote Code Execution Vulnerability

Affected Products

4 affected entries in total
ProductAffected versionsFixed in
Sharepoint Enterprise ServerMicrosoft2016n/a
Sharepoint FoundationMicrosoft2013-sp115.0.5345.1000
Sharepoint ServerMicrosoft2016, 201916.0.5161.1000

Patched Releases

Sharepoint Foundation

15.0.5345.1000

Sharepoint Server

16.0.10374.20000, 16.0.5161.1000

Timeline

  1. Publicly disclosed

    May 11, 2021

  2. Last updated

    Feb 28, 2025

Weakness Type

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

FAQ

Common Questions.

Is CVE-2021-31181 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Oct 19, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.