Skip to content
Access control Advisory Advanced CVE-2025-32726

Visual Studio Code Elevation of Privilege Vulnerability (CVE-2025-32726)

Visual Studio Code had improper access control that let an authorised attacker elevate privileges locally. An attacker who exploited it could execute code in the context of another Visual Studio Code user on the same system.

Ivan Lepies Follow

Originally disclosed on Microsoft

High 6.8 View original

Description

Improper access control in Visual Studio Code 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 execute code in the context of another Visual Studio Code user on the vulnerable system.

FAQ

According to the CVSS metrics, successful exploitation of this vulnerability could lead to major loss of confidentiality (C:H), and integrity (I:H), and some loss of availability (A:L). What does that mean for this vulnerability? An attacker who successfully exploited this vulnerability could view sensitive information (Confidentiality) and modify code in the repo, (Integrity), and they might be able to interfere with availability of the code (Availability).

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Ivan Lepies with IstroSec s.r.o.. 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

Impact

An attacker could view sensitive information, modify code in the repository, and might interfere with availability of the code, but only locally and only as another Visual Studio Code user.

What the attacker needed

Local access to the machine; another VS Code user logged in

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.

Access control is the set of rules deciding who is allowed to do what. Here those rules were too loose, so someone who already had some access to the machine could act as a different user of the code editor. That could let them run code as that other person and read or change their files.

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.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.