Skip to content
RCE Advisory Intermediate CVE-2025-30399

.NET and Visual Studio Remote Code Execution Vulnerability (CVE-2025-30399)

A .NET and Visual Studio component searches for files in an untrusted location, so a malicious DLL placed in a directory it searches can be loaded instead of the intended library. An attacker who can plant such a file and persuade a victim to run a crafted file could execute code on the victim's system.

jony_juice Follow

Originally disclosed on Microsoft

High 7.5 View original

Description

Untrusted search path in .NET and Visual Studio allows an unauthorized 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? This attack requires a victim to perform a specific action, such as copying files or executing a command, and for an attacker with appropriate access to have pre-planted malicious files with knowledge of where they should be placed on the victim's system.

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.

.NET and Visual Studio

.NET and Visual Studio

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by jony_juice. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 an untrusted search path, where the application resolves a DLL from a location an attacker can write to rather than a trusted directory.

Impact

Code execution is possible, but it requires the attacker to have pre-planted malicious files and the victim to run a crafted file, so the attack complexity is high.

What the attacker needed

Attacker pre-plants a malicious DLL; victim runs a crafted file; attacker knows the target directory

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.

Some programs look for supporting files, called DLLs, in a set of folders when they start. If one of those folders is not trusted, someone else can put a fake DLL there and the program will load it instead of the real one. The fake DLL runs the attacker's code, but here the victim has to run a crafted file and the attacker must already have placed the malicious file in the right spot.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by jony_juice

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.