CVE-2022-30129
Visual Studio Code vulnerability analysis and mitigation

Overview

Visual Studio Code Remote Code Execution Vulnerability (CVE-2022-30129) was discovered and disclosed in May 2022. The vulnerability affected Visual Studio Code versions prior to 1.67.1, allowing attackers to execute arbitrary commands on a victim's computer through maliciously crafted Git repository URLs (Sonar Blog, NVD).

Technical details

The vulnerability stems from an argument injection bug in Visual Studio Code's Git module. When handling Git clone operations through the vscode:// URL protocol, the application failed to properly validate repository URLs, allowing attackers to inject command-line arguments. The vulnerability received a CVSS v3.1 base score of 8.8 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

If successfully exploited, the vulnerability allows attackers to execute arbitrary commands on the victim's computer when a developer clicks on a malicious repository link. Notably, the Workspace Trust feature, designed to prevent unintended command execution, could be bypassed if the last Visual Studio Code window with focus was trusted (Sonar Blog).

Mitigation and workarounds

Microsoft addressed this vulnerability in Visual Studio Code version 1.67.1 by implementing improved validation on Git repository URLs. The patch includes validating the URL scheme against a pre-established allow list, preventing the argument injection by restricting URL schemes to 'file', 'git', 'http', 'https', and 'ssh' (Sonar Blog).

Additional resources


SourceThis report was generated using AI

Related Visual Studio Code vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55319CRITICAL9.8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesSep 12, 2025
CVE-2025-64660HIGH8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesNov 20, 2025
CVE-2025-49714HIGH7.8
  • Visual Studio CodeVisual Studio Code
  • python
NoYesJul 08, 2025
CVE-2025-21264HIGH7.1
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesMay 13, 2025
CVE-2025-62453MEDIUM5
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesNov 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management