Visual Studio Elevation of Privilege Vulnerability (CVE-2025-55240)
Visual Studio has an improper access control flaw that lets an authenticated attacker place a malicious file on the path to a project directory. When a user with admin privileges creates a Visual Studio project, the attacker could gain elevated privileges, potentially administrator rights.
Polar Penguin Follow with ycdxsb
Originally disclosed on Microsoft
Description
Improper access control in Visual Studio allows an authorized attacker to elevate privileges locally.
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 authenticated attacker could place a malicious file on the path to the project directory and then wait for a user with admin privileges to create a Visual Studio project to gain elevated privileges.
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.
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 does not properly check access to files on the project path, so a low-privileged user can plant a file that is later loaded with higher privileges.
Impact
An attacker who successfully exploited this vulnerability could gain administrator privileges, but the attack requires a low-privileged authenticated user and a separate admin user to create a project.
What the attacker needed
Authenticated low-privileged attacker; ability to write a file on the project path; admin user creates a Visual Studio project
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 for writing software. This bug means someone who already has a low-level login could put a harmful file where a project is about to be created. If an administrator then makes a new project, the harmful file could run with the administrator's power, which is much more than the attacker should have.
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.