← Vulnerability feed

Vulnerability record · CVE-2022-41034 · published 11 October 2022

CVE-2022-41034: Visual Studio Code remote code execution via local vector

Microsoft · Visual Studio Code

CVE-2022-41034 is a remote code execution vulnerability in Microsoft Visual Studio Code, rated HIGH at CVSS 3.1 score 7.8. The record gives no root-cause detail (CWE is listed as insufficient information), so the exact flaw mechanism is unknown from the supplied data. It matters because successful exploitation yields full compromise of confidentiality, integrity and availability on the affected host.

7.8 CVSS 3.1 High EPSS 67% · top 0.7%
7.8CVSS 3.1 base score
67%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References
17 Jun 2026Last modified by NVD

Description

Visual Studio Code Remote Code Execution Vulnerability

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityCVSS 7.8 with high EPSS (99.27th percentile) and full confidentiality, integrity and availability impact, though exploitation requires local access and user interaction and no KEV listing exists.

What it is

CVE-2022-41034 is a remote code execution vulnerability in Microsoft Visual Studio Code, rated HIGH at CVSS 3.1 score 7.8. The record gives no root-cause detail (CWE is listed as insufficient information), so the exact flaw mechanism is unknown from the supplied data. It matters because successful exploitation yields full compromise of confidentiality, integrity and availability on the affected host.

Impact

An attacker gains code execution with high impact to confidentiality, integrity and availability, meaning arbitrary code can run in the context of the VS Code user. No privilege escalation is implied by the vector, since PR:N and scope is unchanged.

Attack surface

The vector AV:L/AC:L/PR:N/UI:R indicates local access with no privileges required but user interaction required, so the attacker must get the victim to open or interact with crafted content in VS Code. It is not remotely reachable without that local, user-driven step.

Exploitation

Not listed in CISA KEV, but EPSS is 0.67469 (99.27th percentile), indicating a high predicted likelihood of exploitation activity. The only references are Microsoft advisories, one tagged Patch and Vendor Advisory, so no public exploit details are confirmed in this record.

What to do

  • Apply the Microsoft security update referenced in the MSRC advisory for CVE-2022-41034 as the first action.
  • Keep Visual Studio Code and its extensions updated to current supported releases.
  • Restrict opening untrusted workspaces, folders or files in VS Code, and use Workspace Trust to limit automatic execution of workspace code.
  • Run VS Code with least privilege and avoid running it as an administrator or root.
  • Monitor vendor advisories for follow-up guidance if the root cause is clarified.

Detection

  • Monitor for unexpected child processes spawned by VS Code (for example shells, scripting hosts or network utilities).
  • Alert on VS Code processes making unusual outbound network connections or writing to unexpected locations.
  • Audit VS Code extension installs and workspace trust decisions for untrusted or unknown sources.
  • Correlate endpoint telemetry for file writes or process creation tied to recently opened untrusted workspaces.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-41034 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-55319Microsoft visual studio code command injection vulnerabilityAi command injection in Agentic AI and Visual Studio Code allows an unauthorized attacker to execute code over a network.EPSS 0.92%9.8CVE-2024-43488Microsoft visual studio code missing authentication for critical function vulnerabilityMissing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated attacker to perform remote code ex…EPSS 1.2%9.6CVE-2026-81376Microsoft visual studio code vulnerabilityIncomplete comparison with missing factors in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.EPSS 0.82%9.6CVE-2026-47281Microsoft visual studio code missing authentication for critical function vulnerabilityMissing authorization in Visual Studio Code allows an unauthorized attacker to elevate privileges over a network.EPSS 0.76%8.8CVE-2026-78462Microsoft visual studio code insecure direct object reference vulnerabilityAuthorization bypass through user-controlled key in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.EPSS 0.76%8.8CVE-2026-70336Microsoft visual studio code code injection vulnerabilityImproper control of generation of code ('code injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.EPSS 0.82%8.8CVE-2026-69320Microsoft visual studio code os command injection vulnerabilityImproper neutralization of special elements used in an os command ('os command injection') in Visual Studio Code allows an unauthorized attacker to e…EPSS 0.86%8.8CVE-2026-59113Microsoft visual studio code missing authorization vulnerabilityMissing authorization in Visual Studio Code allows an unauthorized attacker to execute code over a network.EPSS 0.76%

Source: NIST National Vulnerability Database (record CVE-2022-41034), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.