# CVE-2020-1171: Visual Studio Code Python Extension Remote Code Execution Vulnerability

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.21%, higher than 92% of CVEs (2026-12-01)
- Published: 2020-05-21T22:53:30.000Z
- Modified: 2026-08-19T17:17:28.833Z
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Microsoft Python extension for Visual Studio Code: from 2020 before publication
- microsoft python: before 2020.5.0

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 9.3 High `AV:N/AC:M/Au:N/C:C/I:C/A:C`

## References

- <https://msrc.microsoft.com/update-guide/vulnerability/CVE-2020-1171> (patch, vendor-advisory)
- <https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-1171> (patch, vendor-advisory)

## Sources

- CVE List: [CVE-2020-1171](https://www.cve.org/CVERecord?id=CVE-2020-1171), CVE Terms of Use, modified 2026-08-19
- NVD: [CVE-2020-1171](https://nvd.nist.gov/vuln/detail/CVE-2020-1171), Public domain, modified 2026-08-19

---

Page: https://cve.day/CVE-2020-1171 · Whole record: https://cve.day/CVE-2020-1171.json · Rebuilt by cve.day 2026-11-25T22:57:52.552Z
