.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability (CVE-2024-21409)
A local attacker who can log on to a Windows system could run a specially crafted application or convince a user to open a malicious file, leading to code execution and system takeover. The vulnerability is in .NET and Visual Studio, and the title's 'remote' refers to the attacker's location, not the attack vector.
FAQ
How could an attacker exploit this vulnerability? To exploit this vulnerability, an attacker would first have to log on to the system. An attacker could then run a specially crafted application that could exploit the vulnerability and take control of an affected system. Additionally, an attacker could convince a local user to open a malicious file. The attacker would have to convince the user to click a link, typically by way of an enticement in an email or instant message, and then convince them to open the specially crafted file.
FAQ
For .NET 7.0 and .NET 8.0, what operating systems are affected by this vulnerability? This is a Windows-only vulnerability for .NET 7.0 and .NET 8.0. For more information see Microsoft Security Advisory CVE-2024-21409 | .NET Elevation of Privilege Vulnerability .
FAQ
According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this remote code execution vulnerability? An authenticated attacker who successfully exploited a vulnerability in WordPad when closing a maliciously crafted .docx file could trigger execution of malicious code.
.NET and Visual Studio
.NET and Visual Studio
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a memory-safety or input-validation flaw in how .NET or Visual Studio handles a crafted file or application, allowing arbitrary code execution.
What the attacker needed
Attacker logs on locally; victim opens a malicious file; Windows system
The fix
Microsoft should fix the flaw in .NET and Visual Studio, and users should apply the security update.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a flaw in software made by Microsoft that lets someone who already has a login on a computer run harmful code. The attacker must either run a program themselves or trick a user into opening a bad file. Once the code runs, the attacker can control the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.