Visual Studio Elevation of Privilege Vulnerability (CVE-2025-25003)
Visual Studio has an uncontrolled search path element that lets an authenticated local attacker elevate privileges to those of the user running the application. The attacker must trigger a payload in the application, which requires user interaction.
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? The attacker would gain the rights of the user that is running the affected application.
FAQ
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of this vulnerability requires that a user trigger the payload in the application.
FAQ
According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? Any authenticated attacker could trigger this vulnerability. It does not require admin or other elevated privileges.
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, Visual Studio searches for a required file in a location that an attacker can write to, allowing a malicious file to be loaded.
Impact
An authenticated attacker could gain the rights of the user running the affected application, but exploitation requires the user to trigger the payload.
What the attacker needed
Authenticated local attacker; user triggers the payload
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.
An uncontrolled search path means the program looks for files in folders an attacker can control, so it may load a malicious file instead of the intended one. Here, someone who already has a low-privilege account on the same machine could trick Visual Studio into running their code with the rights of the person using it. The attacker needs the user to trigger the payload, so it is not fully automatic.
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.