SB2020022112 - Arbitrary File Overwrite in yarn package for dependency management



SB2020022112 - Arbitrary File Overwrite in yarn package for dependency management

Published: February 21, 2020 Updated: March 7, 2020

Security Bulletin ID SB2020022112
CSH Severity
Medium
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Remote access
Highest impact Data manipulation

Breakdown by Severity

Medium 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Path traversal (CVE-ID: CVE-2020-8131)

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green


The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to symlinks not being correctly unpacked as part of the Yarn install process. It is possible for a malicious package, upon install, to write to any path on the filesystem even when the "--ignore-scripts" option is set. A remote attacker can overwrite arbitrary files on the target system.


Remediation

Install update from vendor's website.