CVE-2026-21523
TOCTOU Race Condition in GitHub Copilot Enables Remote Code Execution
Publication date: 2026-02-10
Last updated on: 2026-02-11
Assigner: Microsoft Corporation
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| microsoft | visual_studio_code | to 1.109.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-367 | The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a time-of-check time-of-use (TOCTOU) race condition found in GitHub Copilot and Visual Studio. It allows an authorized attacker to execute code over a network by exploiting the timing between checking a condition and using the result of that check.
How can this vulnerability impact me? :
The vulnerability can have a severe impact as it allows an attacker with some level of authorization to execute arbitrary code remotely. This can lead to complete compromise of the affected system, including unauthorized access, data modification, and disruption of availability.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know