CVE-2025-21173
Visual Studio 2022 vulnerability analysis and mitigation

Overview

A .NET Elevation of Privilege Vulnerability (CVE-2025-21173) was discovered and disclosed on January 14, 2025. This vulnerability affects multiple versions of Microsoft .NET (8.0.0, 9.0.0) and Visual Studio 2022, particularly when running on Linux systems. The vulnerability has been assigned a CVSS v3.1 base score of 7.3 (High) by Microsoft (NVD).

Technical details

The vulnerability is classified under CWE-379 (Creation of Temporary File in Directory with Insecure Permissions). It has been assigned a CVSS v3.1 vector string of CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, indicating local access vector, low attack complexity, low privileges required, user interaction required, unchanged scope, and high impact on confidentiality, integrity, and availability (Red Hat).

Impact

This vulnerability allows an attacker to write a specially crafted file in the security context of the local system. The attacker can bypass standard user permissions, manipulate critical system files, execute arbitrary code, or install malicious software, potentially compromising the entire system (Red Hat).

Mitigation and workarounds

Security updates have been released for affected versions. Ubuntu has released fixes for dotnet8 (version 8.0.112-8.0.12) and dotnet9 (version 9.0.102-9.0.1) across multiple distributions. For .NET 6 and .NET 7, these versions are end of life upstream and will not receive fixes (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related Visual Studio 2022 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55315CRITICAL9.9
  • C#C#
  • dotnet-runtime-dbg-9.0
NoYesOct 14, 2025
CVE-2025-53773HIGH7.8
  • Visual Studio 2022Visual Studio 2022
  • cpe:2.3:a:microsoft:visual_studio_2022
NoYesAug 12, 2025
CVE-2025-47959HIGH7.1
  • Visual Studio 2022Visual Studio 2022
  • cpe:2.3:a:microsoft:visual_studio_2022
NoYesJun 13, 2025
CVE-2025-62214MEDIUM6.7
  • Visual Studio 2022Visual Studio 2022
  • cpe:2.3:a:microsoft:visual_studio_2022
NoYesNov 11, 2025
CVE-2025-55248MEDIUM5.7
  • C#C#
  • dotnet-bootstrap-8
NoYesOct 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management