Visual Studio Remote Code Execution Vulnerability (CVE-2025-47959)
Visual Studio fails to neutralise special elements in a command, allowing an authorised attacker to execute code over a network. An attacker with standard user privileges could place a malicious file in an online or local network directory and wait for a victim to run it, which loads a malicious DLL.
Originally disclosed on Microsoft
Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio allows an authorized attacker to execute code over a network.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires that the target system be set up in a specific manner and the attacker to have knowledge of that setup.
FAQ
According to the CVSS metric, user interaction is required (UI:R) and privileges required is Low (PR:L). What does that mean for this vulnerability? An authorized attacker with standard user privileges could place a malicious file in an online directory or in a local network location and then wait for the user to run the file.
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? This attack requires a specially crafted file to be placed either in an online directory or in a local network location. When a victim runs this file, it loads the malicious DLL.
Visual Studio
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 improper neutralisation of special elements used in a command, allowing a crafted file to load a malicious DLL when run.
Impact
An attacker could execute code on the victim's system, but exploitation requires a specific target setup and the victim to run the crafted file.
What the attacker needed
Authorised attacker with standard user privileges; target system set up in a specific manner; victim runs the crafted file
How it was found
- An authorised attacker with standard user privileges places a malicious file in an online directory or a local network location.
- The attacker waits for the victim to run the file.
- When the victim runs the file, it loads the malicious DLL.
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.
Visual Studio is a program developers use to write code. A command injection flaw means the program does not properly clean up special characters in something it processes, so an attacker can sneak in extra instructions. Here, an attacker with a normal account could put a harmful file where a victim might open it, and opening it runs the attacker's code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.