Visual Studio Elevation of Privilege Vulnerability (CVE-2025-24998)
Visual Studio searches for a DLL in an uncontrolled location, so an attacker who can write to a local network share can place a malicious DLL there. When a victim runs the affected program, it loads the attacker's DLL and the attacker gains administrator privileges.
Originally disclosed on Microsoft
Description
Uncontrolled search path element in Visual Studio allows an authorized attacker to elevate privileges locally.
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could gain administrator privileges.
FAQ
According to the CVSS metric, the attack vector is local (AV:L), privileges are low (PR:L), and user interaction is required (UI:R). What is the target context of the remote code execution? This attack requires an authenticated attacker to place a specially crafted .dll file 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 the application searches for a DLL in a location an attacker can write to (an uncontrolled search path) instead of a trusted directory.
Impact
An attacker could gain administrator privileges on the victim's machine, but only if they can write to the network location and the victim runs the affected program.
What the attacker needed
Authenticated attacker; write access to a local network location; victim runs the affected program
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 load extra code files called DLLs from folders they search in order. If an attacker can put a fake DLL in one of those folders, the program may load it instead of the real one. Here the folder is a network location the attacker can write to, so running the program loads the attacker's code with higher rights.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.