Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.8

CVE-2020-1171: Visual Studio Code Python Extension Security Risk

CVE-2020-1171 · published 6 years ago
Summary

An attacker can run malicious code on your computer if you open a project with a malicious Python configuration file. This can happen if you clone a repository from an untrusted source and open it in Visual Studio Code with the Python extension installed. To stay safe, update your Visual Studio Code Python extension as soon as possible.

What to do
  • Update microsoft python extension for visual studio code to version publication or later.
  • Update microsoft python to version 2020.5.0 or later.
Affected software
VendorProductAffected versions
microsoft python extension for visual studio code < publication
microsoft python < 2020.5.0
cpe:2.3:a:microsoft:python:*:*:*:*:*:visual_studio_code:*:*
Original advisory text
Visual Studio Code Python Extension Remote Code Execution Vulnerability
A remote code execution vulnerability exists in Visual Studio Code when the Python extension loads configuration files after opening a project. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.
To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code with the Python extension installed. Attacker-specified code would execute when the target opened the integrated terminal.
The update address the vulnerability by modifying the way Visual Studio Code Python extension handles environment variables.
Severity
8.8 High
Exploitation
5% chance of attack within 30 days
Timeline
Published21 May 2020
Updated30 Oct 2026
First seen19 Aug 2026
Sources
CVE-2020-1171 · NVD
CVE-2020-1171 · MITRE
Track software like this
Free during beta