Untrusted search path in Visual Studio Code - CVE-2025-26631

 

Untrusted search path in Visual Studio Code - CVE-2025-26631

Published: March 11, 2025


Vulnerability identifier: #VU105567
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-26631
CWE-ID: CWE-426
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to escalate privileges on the system.

The vulnerability exists due to usage of an untrusted search path in Visual Studio. A remote user can trick a victim to open a specially crafted file and gain elevated privileges on the target system.


Affected software

Visual Studio Code

How to mitigate CVE-2025-26631

Install updates from vendor's website.


External References

Related Security Bulletins