CVE-2024-38081
vulnerability analysis and mitigation

Overview

The CVE-2024-38081 is a security vulnerability affecting Microsoft's .NET, .NET Framework, and Visual Studio products. This elevation of privilege vulnerability was disclosed on July 9, 2024, impacting multiple versions of the affected software including .NET Framework versions 2.0 SP2 through 4.8.1, .NET 6.0, and Visual Studio 2022 versions (NVD, Microsoft Support).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.3 (HIGH) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H. The vulnerability is related to improper link resolution before file access (CWE-59). The security fix specifically addressed changes to the System.IO.Path.GetTempPath method return value, affecting how temporary paths are handled between SYSTEM and non-SYSTEM processes (Microsoft Support).

Impact

The vulnerability could allow an attacker to achieve elevation of privilege. When exploited, it affects how temporary paths are handled, particularly with different behaviors between SYSTEM and non-SYSTEM processes. For SYSTEM processes, it returns the path %WINDIR%\SystemTemp, which is inaccessible to non-SYSTEM processes (Microsoft Support).

Mitigation and workarounds

Microsoft has released security patches to address this vulnerability, including KB5041019 and KB5041023. While a temporary workaround exists by setting the environment variable COMPlusDisableGetTempPath2=true, Microsoft explicitly does not recommend this approach as it disables the security fix. The recommended solution is to install the appropriate security updates through Windows Update or Microsoft Update Catalog (Microsoft Q&A).

Additional resources


SourceThis report was generated using AI

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