Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.
Published: 2026-07-14
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Visual Studio Code contains a command‑injection flaw due to improper neutralization of special elements within command strings. This weakness, identified as CWE‑77, permits an attacker to craft input that is executed by the underlying operating‑system shell, allowing arbitrary code to run with the same privileges as the user running VS Code. An exploit could lead to compromise of confidentiality, integrity, or availability on the client machine.

Affected Systems

Microsoft Visual Studio Code is the affected product. Specific vulnerable releases are not enumerated in the available data, but any installation of VS Code that has not been updated to the latest version from the Microsoft security update guide may be at risk. Operators should verify the version and apply the published fix.

Risk and Exploitability

The CVSS score of 8.4 classifies the vulnerability as high severity. The EPSS score of <1 % indicates a low current probability of exploitation, and it is not currently listed in CISA’s KEV catalog. The attack likely requires an unauthorized user with local access to the machine to inject malicious commands; no publicly documented exploits are known. Nevertheless, the high potential impact warrants immediate remediation.

Generated by OpenCVE AI on July 31, 2026 at 09:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Visual Studio Code to the latest version that includes the CVE‑2026‑50520 fix.
  • Temporarily disable or remove extensions or features that allow command execution until the patch is applied.
  • Run VS Code under a non‑privileged user account or employ system‑level sandboxing (e.g., AppArmor, SELinux) to restrict shell access until the vulnerability is fixed.

Generated by OpenCVE AI on July 31, 2026 at 09:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 14 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 14 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
Description Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code locally.
Title Visual Studio Code Remote Code Execution Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-77
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

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


Subscriptions

Microsoft Visual Studio Code
cve-icon MITRE

Status: PUBLISHED

Assigner: microsoft

Published:

Updated: 2026-08-03T22:53:27.620Z

Reserved: 2026-06-04T19:00:41.292Z

Link: CVE-2026-50520

cve-icon Vulnrichment

Updated: 2026-07-14T18:01:14.279Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T09:30:05Z

Weaknesses
  • CWE-77

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