Skip to main content

Visual Studio Code CVE-2026-70335

| EUVDEUVD-2026-56588 HIGH
OS Command Injection (CWE-78)
2026-08-11 secure@microsoft.com GHSA-hj52-q5wj-vpwg
7.8
CVSS 3.1 · Vendor: microsoft
Share

Severity by source

Vendor (microsoft) PRIMARY
7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
ENISA EUVD
HIGH
qualitative
vuln.today AI
7.8 HIGH

Local vector and UI:R confirmed by description; PR:N reflects no prior privileges needed; full C/I/A High consistent with privilege escalation to arbitrary command execution.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (microsoft).

CVSS VectorVendor: microsoft

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch available
Aug 11, 2026 - 18:19 EUVD
Analysis Generated
Aug 11, 2026 - 17:52 vuln.today
CVE Published
Aug 11, 2026 - 17:19 nvd
HIGH 7.8

DescriptionCVE.org

Improper neutralization of special elements used in an os command ('os command injection') in GitHub Copilot and Visual Studio Code allows an unauthorized attacker to elevate privileges locally.

AnalysisAI

OS command injection in GitHub Copilot and Visual Studio Code enables a local unauthorized attacker to escalate privileges on the affected developer workstation, achieving full High impact across confidentiality, integrity, and availability. The CWE-78 root cause indicates that attacker-influenced input containing shell metacharacters is improperly incorporated into OS-level command execution within one or both products, triggering upon a user action such as opening a malicious file or repository. No public exploit code has been identified and this vulnerability has not been confirmed actively exploited by CISA KEV at time of analysis; however, the local privilege escalation path on widely deployed developer tooling represents a meaningful risk in supply chain and social engineering scenarios.

Technical ContextAI

CWE-78 (Improper Neutralization of Special Elements used in an OS Command) describes vulnerabilities where attacker-controlled strings - containing characters such as semicolons, pipes, backticks, or newlines - are concatenated into OS shell commands without adequate sanitization or quoting. In the context of GitHub Copilot and Visual Studio Code, the injection surface likely resides in how one or both products process repository content, file paths, workspace configuration, extension inputs, or AI-analyzed code snippets that are subsequently passed to a subprocess or shell API. The CVSS local attack vector (AV:L) and user interaction requirement (UI:R) are consistent with a delivery path involving malicious workspace or file content processed during normal developer activity. No CPE strings were provided in the available intelligence, so exact affected product versions and build numbers must be derived directly from the MSRC advisory.

RemediationAI

Consult the Microsoft Security Response Center advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70335 for officially confirmed patched versions of Visual Studio Code and the GitHub Copilot extension; specific fix version numbers were not present in the available intelligence data and should not be inferred. As an interim compensating control, apply VS Code workspace trust settings to restrict automatic execution of tasks, terminal profiles, and extension features when opening untrusted folders or repositories - this directly targets the UI:R delivery vector by requiring explicit user approval before potentially dangerous workspace actions execute. Additionally, avoid opening files or workspaces from unknown or untrusted sources, particularly those shared externally. Note that workspace trust alone does not patch the underlying command injection flaw and should be treated as a stopgap until vendor-released updates are applied.

CVE-2022-41034 HIGH POC
7.8 Oct 11

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-30129 HIGH POC
8.8 May 10

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2026-81376 CRITICAL
9.6 Sep 08

Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a

CVE-2026-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

CVE-2026-57102 HIGH
8.8 Jul 14

Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c

CVE-2026-59113 HIGH
8.8 Aug 11

Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check

CVE-2026-70336 HIGH
8.8 Aug 11

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co

CVE-2026-78462 HIGH
8.8 Sep 08

Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to

CVE-2026-69320 HIGH
8.8 Aug 11

OS command injection in Visual Studio Code exposes victims to remote code execution when they interact with attacker-con

CVE-2026-41109 HIGH
8.8 May 12

Security-feature bypass in GitHub Copilot and Visual Studio (affecting Visual Studio Code builds before 1.119.1) lets a

CVE-2026-41613 HIGH
8.8 May 12

Privilege elevation in Microsoft Visual Studio Code (all releases from 1.0.0 up to but not including 1.119.1) stems from

CVE-2024-43488 CRITICAL
9.8 Oct 08

Missing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated attac

Share

CVE-2026-70335 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy