LiveActive security incident?Get immediate response
CVE Record

CVE-2021-31211: Visual Studio Code Remote Code Execution Vulnerability

Visual Studio Code Remote Code Execution Vulnerability

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This CVE describes a high-severity remote code execution issue in Microsoft Visual Studio Code. Exploitation requires local user interaction, but successful exploitation could significantly affect confidentiality, integrity, and availability. The provided sources do not show CISA KEV listing or active exploitation.

Executive priority

Treat as high priority for developer endpoint hygiene, especially where staff handle external code or files. It is not KEV-listed in the supplied evidence, but the potential impact is severe if triggered.

Technical view

CVSS 3.1 is 7.8 with AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The bundle lists Microsoft Visual Studio Code as affected and references MSRC. The CVSS vector indicates an official fix exists, but the supplied evidence does not name a fixed version or mitigation details.

Likely exposure

Exposure is most likely on developer workstations or build environments running affected Visual Studio Code. The source bundle identifies Visual Studio Code but gives limited version detail, so asset inventory should be compared against the MSRC advisory.

Exploitation context

The CVSS vector requires local access and user interaction, with no privileges required. KEV is false in the bundle, and exploit maturity is marked unproven, so active exploitation is not established by the provided evidence.

Researcher notes

Do not assume affected version scope beyond the provided sources. The CVSS fields show local attack vector, required user interaction, and full CIA impact. Use MSRC as the authoritative source for exact version and remediation details.

Mitigation direction

  • Review Microsoft MSRC guidance for the exact affected and fixed VS Code versions.
  • Update Visual Studio Code to a vendor-supported fixed release where applicable.
  • Prioritize developer endpoints that open untrusted workspaces, files, or extensions.
  • Apply normal endpoint controls for developer machines until remediation is confirmed.

Validation and detection

  • Inventory installed Visual Studio Code versions across developer and build systems.
  • Compare discovered versions against the MSRC advisory for CVE-2021-31211.
  • Confirm remediation status after updates through endpoint management records.
  • Check whether vulnerable systems handle untrusted project files or repositories.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-31211 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2021-31211Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
MicrosoftVisual Studio Code1.0.0Listed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.