CVE-2020-1171

Visual Studio Code Python Extension Remote Code Execution Vulnerability

No CVSS score yet EPSS 5.21%

Published 21 May 2020 Updated 19 Aug 2026 CNA: microsoft

Description

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.

Exploitation

EPSS 5.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 92.6% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Python extension for Visual Studio Code
affected from 2020, before publication

Is my server affected?

This CVE is in Python extension for Visual Studio Code of Microsoft, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Other references

Source: the record CVE-2020-1171 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.