Skip to main content

CVE-2025-21173: CWE-379: Creation of Temporary File in Directory with Insecure Permissions in Microsoft .NET 8.0

High
VulnerabilityCVE-2025-21173cvecve-2025-21173cwe-379
Published: Tue Jan 14 2025 (01/14/2025, 18:04:02 UTC)
Source: CVE
Vendor/Project: Microsoft
Product: .NET 8.0

Description

.NET Elevation of Privilege Vulnerability

AI-Powered Analysis

AILast updated: 09/10/2025, 03:36:18 UTC

Technical Analysis

CVE-2025-21173 is a high-severity elevation of privilege vulnerability identified in Microsoft .NET 8.0, specifically version 8.0.0. The vulnerability is categorized under CWE-379, which involves the creation of temporary files in directories with insecure permissions. This flaw allows an attacker with limited privileges (low-level privileges) to exploit the insecure handling of temporary files, potentially leading to privilege escalation. The vulnerability requires local access (attack vector: local), low attack complexity, and partial user interaction. The scope of the vulnerability is unchanged, meaning the impact is confined to the vulnerable component. However, the impact on confidentiality, integrity, and availability is high, indicating that successful exploitation could allow an attacker to gain elevated privileges, compromise sensitive data, modify system state, or disrupt services. The vulnerability does not currently have known exploits in the wild, but its presence in a widely used framework like .NET 8.0 makes it a significant risk, especially for applications and services relying on this version. The lack of available patches at the time of publication further increases the urgency for mitigation. The vulnerability's CVSS vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C) indicates that exploitation requires local access and some user interaction, but the attacker needs only low privileges to begin with, making it a realistic threat in environments where users have limited but non-administrative access.

Potential Impact

For European organizations, the impact of CVE-2025-21173 can be substantial, particularly for enterprises and public sector entities that develop or deploy applications on the .NET 8.0 framework. Successful exploitation could allow attackers to escalate privileges from a low-privileged user to higher system privileges, potentially leading to unauthorized access to sensitive data, disruption of critical services, or further lateral movement within networks. This is especially critical for sectors such as finance, healthcare, government, and critical infrastructure, where data confidentiality and system integrity are paramount. Given the widespread adoption of Microsoft technologies across Europe, the vulnerability could affect a broad range of organizations, increasing the risk of targeted attacks or insider threats exploiting this flaw. The requirement for local access and user interaction somewhat limits remote exploitation but does not eliminate risk in environments with shared workstations, remote desktop services, or where social engineering could induce user interaction. The absence of known exploits in the wild currently provides a window for proactive defense, but organizations should not delay remediation efforts.

Mitigation Recommendations

To mitigate CVE-2025-21173 effectively, European organizations should: 1) Immediately inventory and identify all systems running .NET 8.0, especially version 8.0.0, to understand exposure. 2) Apply any available patches or updates from Microsoft as soon as they are released; monitor official Microsoft security advisories closely. 3) Implement strict file system permissions on directories used for temporary file creation, ensuring that only authorized users and processes have write access, thereby reducing the risk of exploitation via insecure temporary files. 4) Employ application whitelisting and privilege management to limit the ability of low-privileged users to execute or modify critical components. 5) Educate users about the risks of interacting with untrusted content or executing unknown applications, as user interaction is required for exploitation. 6) Use endpoint detection and response (EDR) tools to monitor for suspicious activities related to file creation and privilege escalation attempts. 7) Consider isolating critical applications or services that rely on .NET 8.0 in sandboxed or containerized environments to limit the impact of potential exploitation. 8) Review and harden remote access policies to minimize scenarios where attackers can gain local access or induce user interaction remotely.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
microsoft
Date Reserved
2024-12-05T21:43:30.760Z
Cisa Enriched
true
Cvss Version
3.1
State
PUBLISHED

Threat ID: 682d981cc4522896dcbda74b

Added to database: 5/21/2025, 9:08:44 AM

Last enriched: 9/10/2025, 3:36:18 AM

Last updated: 9/23/2025, 10:10:05 PM

Views: 23

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats