Sceawere

Vulnerability Detail

CVE-2026-70335UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

OS Command Injection in GitHub Copilot and Visual Studio Code

Vulnerability Metadata

Severity
High
Score / CVSS
7.8
Creation Date
7h ago
Vendor
Microsoft
Product
Visual Studio Code
Attack Type
CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Complexity
LOW

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "7.8",
  "pubDate": "2026-08-11T17:19:11.153Z",
  "pubdate": "2026-08-11T17:19:11.153Z",
  "executiveSummary": "An improper neutralization of special elements used in an OS command vulnerability, commonly categorized as OS Command Injection, has been identified in GitHub Copilot and Visual Studio Code. This security flaw enables an unauthorized local attacker to execute arbitrary system commands and achieve local privilege escalation. The vulnerability affects the integration components between GitHub Copilot and Visual Studio Code, posing significant risks to host system integrity and confidentiality. Exploitation of this flaw requires local access to the target machine where the vulnerable software is installed. By supplying maliciously crafted input containing special command metacharacters, an attacker can coerce the application into passing unvalidated data directly to the underlying operating system shell. The successful execution of arbitrary commands under the security context of the application process can lead to unauthorized access, modification, or deletion of sensitive files, as well as the potential installation of persistent backdoors or malware. This compromises the overall security posture of the host environment, necessitating prompt remediation to prevent local privilege escalation vectors from being leveraged by malicious actors.",
  "technicalDetails": "The root cause of this vulnerability stems from the insecure handling and lack of proper sanitization or neutralization of special input elements before they are incorporated into operating system commands. Specifically, GitHub Copilot and Visual Studio Code fail to adequately validate or escape parameters passed to underlying system shell execution routines within their processing pipelines. The vulnerable component involves the execution modules responsible for handling specific extension tasks or external process invocations within the Visual Studio Code environment utilizing GitHub Copilot features.\nExploitation occurs locally and does not inherently require network exposure, authentication credentials, or advanced remote capabilities, provided the attacker possesses local execution context or the ability to manipulate inputs processed by the application. The attack flow begins when an attacker supplies crafted input strings containing shell metacharacters, such as semicolons, pipes, or backticks, into the application vector processed by the vulnerable component. Because the application fails to enforce strict allowlisting or proper argument-array separation when spawning child processes, the operating system shell interprets these metacharacters as command separators or injection points.\nConsequently, the system executes the attacker-supplied payload concurrently or sequentially alongside the intended legitimate command. Depending on the privilege level of the process running Visual Studio Code or the associated GitHub Copilot background services, the malicious payload inherits those access rights. If the application operates with elevated privileges or interacts with administrative helper scripts, the execution of arbitrary commands results in immediate local privilege escalation. Post-exploitation impact includes full code execution on the host operating system, unauthorized access to user data, modification of system configurations, and potential lateral movement or persistence establishment within the local environment."
}
CVE-2026-70335: OS Command Injection in GitHub Copilot and Visual Studio Code (HIGH Severity, CVSS: 7.8) - Sceawere