CVE-2026-70335

GitHub Copilot and Visual Studio Code Elevation of Privilege Vulnerability

Published Aug 11, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from improper neutralization of special elements used in an operating‑system command within GitHub Copilot and Visual Studio Code. This oversight, classified as OS command injection (CWE‑78), enables an attacker with a local unauthenticated session to execute arbitrary system commands, thereby escalating privileges on the affected machine.

Affected Systems

Microsoft Visual Studio Code, including the GitHub Copilot extension. The exact product versions are not specified in the data, so the issue likely applies to all installed versions of VS Code that currently integrate the Copilot feature.

Risk and Exploitability

The CVSS score of 7.8 marks it as a high‑severity vulnerability, yet the EPSS score is reported as < 1%, indicating that exploitation is expected to be rare. Because the flaw can be exercised only after the attacker has obtained local access, the attack vector remains local, and the vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Visual Studio Code update that contains the fix for CVE‑2026‑70335.
  • If an immediate update is unavailable, disable or uninstall the GitHub Copilot extension to remove the susceptible code paths.
  • Employ the principle of least privilege by restricting local user accounts from running applications with elevated rights and monitor for unusual command executions.

Generated by OpenCVE AI on August 12, 2026 at 19:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title GitHub Copilot and Visual Studio Code Elevation of Privilege Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-78
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Nov 19, 2026, 10:17 PM
Reserved
Aug 4, 2026, 12:04 AM
Status
Analyzed
Published
Aug 11, 2026, 5:19 PM
Modified
Oct 24, 2026, 4:10 PM