Cyber Posture

CVE-2025-21173

High

Published: 14 January 2025

Published
14 January 2025
Modified
06 May 2025
KEV Added
Patch
CVSS Score 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.0200 83.8th percentile
Risk Priority 16 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-21173 is a high-severity Creation of Temporary File in Directory with Insecure Permissions (CWE-379) vulnerability in Microsoft Visual Studio 2022. Its CVSS base score is 7.3 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 16.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 AC-3 (Access Enforcement) and AC-6 (Least Privilege).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploitation for Privilege Escalation (T1068). What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Directly remediates the .NET elevation of privilege flaw by requiring timely identification, reporting, and correction via patches as advised by Microsoft.

prevent

Enforces least privilege to restrict low-privileged local attackers from achieving high-impact escalation in .NET environments.

prevent

Mandates enforcement of access control policies to block unauthorized privilege escalation attempts exploiting the .NET vulnerability.

MITRE ATT&CK Enterprise TechniquesAI

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
Why these techniques?

Direct EoP vulnerability enabling local privilege escalation via exploitation of insecure file permissions in .NET (CWE-379).

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

NVD Description

.NET Elevation of Privilege Vulnerability

Deeper analysisAI

CVE-2025-21173 is an elevation of privilege vulnerability in .NET, published on 2025-01-14, with a CVSS v3.1 base score of 7.3 (AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H). It is associated with CWE-379 and lacks additional NVD CWE details. The flaw allows unauthorized privilege escalation within .NET environments.

A local attacker with low privileges (PR:L) can exploit this vulnerability with low attack complexity (AC:L), though it requires user interaction (UI:R). Successful exploitation enables high-impact consequences across confidentiality, integrity, and availability (C:H/I:H/A:H), typically resulting in privilege escalation on the affected system.

Microsoft's Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21173 provides details on mitigation and patching. Additional vulnerability information is available at https://www.herodevs.com/vulnerability-directory/cve-2025-21173.

Details

CWE(s)

Affected Products

microsoft
visual studio 2022
17.6.0 — 17.6.22 · 17.8.0 — 17.8.17 · 17.10.0 — 17.10.10
microsoft
.net
8.0.0, 9.0.0

CVEs Like This One

CVE-2026-26131Same product: Linux Linux Kernel
CVE-2026-31743Same product: Linux Linux Kernel
CVE-2026-23099Same product: Linux Linux Kernel
CVE-2024-58055Same product: Linux Linux Kernel
CVE-2025-21735Same product: Linux Linux Kernel
CVE-2026-23221Same product: Linux Linux Kernel
CVE-2025-21763Same product: Linux Linux Kernel
CVE-2025-21631Same product: Linux Linux Kernel
CVE-2026-31453Same product: Linux Linux Kernel
CVE-2026-23411Same product: Linux Linux Kernel

References