What’s Vulnerable › Vulnerabilities
CVE-2021-31213: Visual Studio Code Remote Containers Extension Remote Code Execution Vulnerability
- Severity: medium (CVSS 6.8 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 52.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-05-11 · updated 2026-06-17
Description
Visual Studio Code Remote Containers Extension Remote Code Execution Vulnerability
Affected products
- Microsoft Remote: before 0.177.2 — fixed in 0.177.2
- Microsoft Visual Studio Code Remote - Containers Extension: from 1.0.0 before 1.56 — fixed in 1.56
How to fix
Upgrade to a fixed version: Microsoft Remote 0.177.2; Microsoft Visual Studio Code Remote - Containers Extension 1.56. Check the vendor advisory for mitigations.
References
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31213
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-31213
Get alerted when CVE-2021-31213 or the next vulnerability affects your stack