CVE-2022-24512

.NET and Visual Studio Remote Code Execution Vulnerability

6.3 medium EPSS 1.61%

Published 9 Mar 2022 Updated 27 May 2026 CNA: microsoft

Description

.NET and Visual Studio Remote Code Execution Vulnerability

Severity (CVSS)

6.3 medium CVSS 3.1 from microsoft (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L/E:U/RL:O/RC:C
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.61%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 76.6% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 20 May 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-94 Improper Control of Generation of Code

Affected products

As the CNA lists them.

ProductVersions
Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6)
affected from 16.0.0, before 16.7.26
Microsoft Visual Studio 2019 version 16.9 (includes 16.0 - 16.8)
affected from 15.0.0, before 16.9.18
Microsoft Visual Studio 2019 version 16.11 (includes 16.0 - 16.10)
affected from 16.11.0, before 16.11.11
Microsoft Visual Studio 2022 version 17.0
affected from 17.0.0, before 17.0.7
.NET 5.0
affected from 5.0.0, before 5.0.15
.NET 6.0
affected from 6.0.0, before 6.0.3
.NET Core 3.1
affected from 3.1, before 3.1.23
PowerShell 7.2
affected from 7.2.0, before 7.2.2
PowerShell 7.0
affected from 7.0.0, before 7.0.9
PowerShell 7.1
affected from 7.1.0, before 7.1.6

Is my server affected?

This CVE is in Microsoft Visual Studio 2019 version 16.7 (includes 16.0 – 16.6) of Microsoft, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Source: the record CVE-2022-24512 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.