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

Published Jul 14, 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

4 affected components
Microsoft SharePoint
Microsoft SharePoint Foundation=2013-sp1
Microsoft SharePoint Server=2016
Microsoft SharePoint Server=2019

Event History

Jul 14, 2021
CVE Published
via MITRE·05:54 PM
Data Sourced
via MITRE·05:54 PM
DescriptionSeverity
Feb 22, 2025
Advisory Published
via ZDI·03:03 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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