Security Update for Microsoft Visual Studio Code (CVE-2020-16881)

High Nessus Plugin ID 140432

New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it's different from CVSS.

VPR Score: 7.4

Synopsis

The remote host has an application installed that is missing a security update.

Description

The version of Microsoft Visual Studio Code installed on the remote Windows host is prior to 1.48.2. It is, therefore, affected by the following vulnerability:

- A remote code execution vulnerability exists in Visual Studio Code when a user is tricked into opening a malicious 'package.json' file. 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. Attacker- specified code would execute when the target opens the malicious 'package.json' file. The update address the vulnerability by modifying the way Visual Studio Code handles JSON files.

Solution

Upgrade to Microsoft Visual Studio Code 1.48.2 or later.

See Also

https://code.visualstudio.com/updates/v1_48

http://www.nessus.org/u?fa187f85

Plugin Details

Severity: High

ID: 140432

File Name: smb_nt_ms20_sep_visual_studio_code.nasl

Version: 1.5

Type: local

Agent: windows

Family: Windows

Published: 2020/09/08

Updated: 2020/10/16

Dependencies: 122256, 129057

Risk Information

Risk Factor: High

VPR Score: 7.4

CVSS Score Source: CVE-2020-16881

CVSS v2.0

Base Score: 9.3

Temporal Score: 6.9

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

Temporal Vector: CVSS2#E:U/RL:OF/RC:C

CVSS v3.0

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:microsoft:visual_studio_code

Required KB Items: installed_sw/Microsoft Visual Studio Code, SMB/Registry/Enumerated

Exploit Ease: No known exploits are available

Patch Publication Date: 2020/09/08

Vulnerability Publication Date: 2020/09/08

Reference Information

CVE: CVE-2020-16881

IAVA: 2020-A-0411-S