CVE-2021-34520: Microsoft SharePoint SetVariableActivity Deserialization of Untrusted Data Remote Code Execution Vulnerability

Published Jul 13, 2021
·
Updated

Microsoft SharePoint Server Remote Code Execution Vulnerability

Other sources

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft SharePoint. Authentication is required to exploit this vulnerability. The specific flaw exists within the Microsoft.SharePoint.WorkflowActions.SetVariableActivity class. A crafted SetVariableActivity element can result in instantiation of an arbitrary .NET type. An attacker can leverage this vulnerability to execute code in the context of the web service account.

ZDI

Affected Software

7 affected componentsFixes available
Microsoft SharePoint
Microsoft SharePoint Foundation=2013-sp1
Microsoft SharePoint Server=2016
Microsoft SharePoint Server=2019
Microsoft SharePoint Server 2019<16.0.10376.20001
16.0.10376.20001
Microsoft SharePoint Foundation 2013<15.0.5363.1000
15.0.5363.1000
Microsoft SharePoint Enterprise Server 2016<16.0.5188.1000
16.0.5188.1000

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.0.10376.20001Patch KB5001975
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 15.0.5363.1000Patch KB5001992
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.0.5188.1000Patch KB5001976

Event History

Jul 13, 2021
CVE Published
via Microsoft·02:00 PM
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
Description
Jul 14, 2021
CVE Published
via MITRE·05:54 PM
Data Sourced
via MITRE·05:54 PM
DescriptionSeverity
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 19, 2021
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-34520?

CVE-2021-34520 is a vulnerability that allows remote attackers to execute arbitrary code on affected installations of Microsoft SharePoint.

2

How severe is CVE-2021-34520?

CVE-2021-34520 has a severity rating of 8.8 out of 10, indicating a high level of risk.

3

What is the affected software by CVE-2021-34520?

Microsoft SharePoint versions 2013 SP1, 2016, and 2019 are affected by CVE-2021-34520.

4

What is the specific flaw in CVE-2021-34520?

The specific flaw in CVE-2021-34520 exists within the Microsoft.SharePoint.WorkflowActions.SetVariableActivity class.

5

How can I exploit CVE-2021-34520?

Authentication is required to exploit CVE-2021-34520.

6

Are there any references for CVE-2021-34520?

Yes, you can find more information about CVE-2021-34520 at the following references: [Reference 1](https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-34520), [Reference 2](https://www.zerodayinitiative.com/advisories/ZDI-21-828/), [Reference 3](https://msrc.microsoft.com/update-guide/en-us/vulnerability/CVE-2021-34520).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203