CVE-2025-21173: CWE-379: Creation of Temporary File in Directory with Insecure Permissions in Microsoft .NET 8.0
.NET Elevation of Privilege Vulnerability
AI Analysis
Technical Summary
CVE-2025-21173 is a vulnerability identified in Microsoft .NET 8.0, specifically version 8.0.0, involving the creation of temporary files in directories that have insecure permissions, classified under CWE-379. This security flaw allows an attacker with limited privileges (low-level user rights) to exploit the improper handling of temporary files to elevate their privileges on the affected system. The vulnerability requires local access (attack vector: local), low attack complexity, and limited privileges, but does require user interaction, such as running a malicious application or script. The vulnerability impacts confidentiality, integrity, and availability, as indicated by the CVSS 3.1 score of 7.3 (high severity). The insecure permissions on temporary directories can allow an attacker to replace or manipulate temporary files, potentially leading to execution of arbitrary code with elevated privileges. Although no known exploits are currently reported in the wild, the vulnerability is publicly disclosed and considered critical enough to warrant immediate attention. The lack of available patches at the time of disclosure means organizations must implement interim mitigations and monitor for suspicious activity. This vulnerability is particularly concerning for environments running .NET 8.0 applications, which are widely used in enterprise and cloud services, potentially exposing critical business applications to privilege escalation attacks.
Potential Impact
For European organizations, the impact of CVE-2025-21173 can be significant, especially for those relying heavily on Microsoft .NET 8.0 for critical business applications and infrastructure. Successful exploitation could allow attackers to gain elevated privileges, leading to unauthorized access to sensitive data, modification or deletion of critical files, and disruption of services. This could result in data breaches, operational downtime, and compliance violations under regulations such as GDPR. Organizations in sectors like finance, healthcare, government, and critical infrastructure are particularly at risk due to the sensitivity of their data and the potential for cascading effects from privilege escalation. The requirement for local access and user interaction somewhat limits remote exploitation but does not eliminate risk, especially in environments where users might be tricked into executing malicious code or where insider threats exist. The vulnerability could also be leveraged as a stepping stone for more sophisticated attacks within a compromised network.
Mitigation Recommendations
1. Apply official patches from Microsoft as soon as they become available to address the insecure temporary file creation issue. 2. Until patches are released, enforce strict access controls on directories used for temporary files in .NET environments, ensuring only authorized users and processes have write permissions. 3. Implement application whitelisting and endpoint protection to prevent execution of unauthorized or suspicious code that could exploit this vulnerability. 4. Educate users about the risks of running untrusted applications or scripts that could trigger the vulnerability. 5. Monitor system logs and use behavioral detection tools to identify unusual privilege escalation attempts or file manipulation activities. 6. Conduct regular security audits of .NET application environments to verify proper permission settings and detect configuration weaknesses. 7. Consider isolating critical .NET applications in sandboxed or containerized environments to limit the impact of potential exploitation. 8. Review and tighten group policies related to temporary file handling and user permissions on Windows systems running .NET 8.0.
Affected Countries
Germany, France, United Kingdom, Netherlands, Italy, Spain, Sweden
CVE-2025-21173: CWE-379: Creation of Temporary File in Directory with Insecure Permissions in Microsoft .NET 8.0
Description
.NET Elevation of Privilege Vulnerability
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-21173 is a vulnerability identified in Microsoft .NET 8.0, specifically version 8.0.0, involving the creation of temporary files in directories that have insecure permissions, classified under CWE-379. This security flaw allows an attacker with limited privileges (low-level user rights) to exploit the improper handling of temporary files to elevate their privileges on the affected system. The vulnerability requires local access (attack vector: local), low attack complexity, and limited privileges, but does require user interaction, such as running a malicious application or script. The vulnerability impacts confidentiality, integrity, and availability, as indicated by the CVSS 3.1 score of 7.3 (high severity). The insecure permissions on temporary directories can allow an attacker to replace or manipulate temporary files, potentially leading to execution of arbitrary code with elevated privileges. Although no known exploits are currently reported in the wild, the vulnerability is publicly disclosed and considered critical enough to warrant immediate attention. The lack of available patches at the time of disclosure means organizations must implement interim mitigations and monitor for suspicious activity. This vulnerability is particularly concerning for environments running .NET 8.0 applications, which are widely used in enterprise and cloud services, potentially exposing critical business applications to privilege escalation attacks.
Potential Impact
For European organizations, the impact of CVE-2025-21173 can be significant, especially for those relying heavily on Microsoft .NET 8.0 for critical business applications and infrastructure. Successful exploitation could allow attackers to gain elevated privileges, leading to unauthorized access to sensitive data, modification or deletion of critical files, and disruption of services. This could result in data breaches, operational downtime, and compliance violations under regulations such as GDPR. Organizations in sectors like finance, healthcare, government, and critical infrastructure are particularly at risk due to the sensitivity of their data and the potential for cascading effects from privilege escalation. The requirement for local access and user interaction somewhat limits remote exploitation but does not eliminate risk, especially in environments where users might be tricked into executing malicious code or where insider threats exist. The vulnerability could also be leveraged as a stepping stone for more sophisticated attacks within a compromised network.
Mitigation Recommendations
1. Apply official patches from Microsoft as soon as they become available to address the insecure temporary file creation issue. 2. Until patches are released, enforce strict access controls on directories used for temporary files in .NET environments, ensuring only authorized users and processes have write permissions. 3. Implement application whitelisting and endpoint protection to prevent execution of unauthorized or suspicious code that could exploit this vulnerability. 4. Educate users about the risks of running untrusted applications or scripts that could trigger the vulnerability. 5. Monitor system logs and use behavioral detection tools to identify unusual privilege escalation attempts or file manipulation activities. 6. Conduct regular security audits of .NET application environments to verify proper permission settings and detect configuration weaknesses. 7. Consider isolating critical .NET applications in sandboxed or containerized environments to limit the impact of potential exploitation. 8. Review and tighten group policies related to temporary file handling and user permissions on Windows systems running .NET 8.0.
Affected Countries
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: 2/14/2026, 7:56:43 AM
Last updated: 3/23/2026, 4:05:46 PM
Views: 108
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.