What’s Vulnerable › Vulnerabilities
CVE-2020-16874: Visual Studio Remote Code Execution Vulnerability
- Severity: critical (CVSS 9.3 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-09-11 · updated 2026-06-17
Description
<p>A remote code execution vulnerability exists in Visual Studio when it improperly handles objects in memory. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Users whose accounts are configured to have fewer user rights on the system could be less impacted than users who operate with administrative user rights.</p> <p>To exploit the vulnerability, an attacker would have to convince a user to open a specially crafted file with an affected version of Visual Studio.</p> <p>The update addresses the vulnerability by correcting how Visual Studio handles objects in memory.</p>
Affected products
- Microsoft Visual Studio: 2012-update_5, 2013-update_5, 2015-update_3
- Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8): from 15.0 through 15.8
- Microsoft Visual Studio 2019: from 16.0 through 16.3; from 16.5 through 16.6
- Microsoft Visual Studio 2012 Update 5: from 11.0.0 before publication — fixed in publication
- Microsoft Visual Studio 2013 Update 5: from 12.0.0 before publication — fixed in publication
- Microsoft Visual Studio 2015 Update 3: from 14.0.0 before publication — fixed in publication
- Microsoft Visual Studio 2019 version 16.0: from 16.0 before publication — fixed in publication
- Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3): from 16.0 before publication — fixed in publication
- Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6): from 16.0.0 before publication — fixed in publication
- Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8): from 15.9.0 before publication — fixed in publication
How to fix
Upgrade to a fixed version: Microsoft Visual Studio 2012 Update 5 publication; Microsoft Visual Studio 2013 Update 5 publication; Microsoft Visual Studio 2015 Update 3 publication; Microsoft Visual Studio 2019 version 16.0 publication; Microsoft Visual Studio 2019 version 16.4 (includes 16.0 - 16.3) publication; Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6) publication; Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8) publication. Check the vendor advisory for mitigations.
References
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-16874
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-16874
Get alerted when CVE-2020-16874 or the next vulnerability affects your stack