Path traversal in yarn - CVE-2020-8131

 

Path traversal in yarn - CVE-2020-8131

Published: February 21, 2020 / Updated: March 3, 2020


Vulnerability identifier: #VU25504
CSH Severity: Medium
CVSS v4.0: 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
CVE-ID: CVE-2020-8131
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Yarn
Affected software:
yarn

Detailed vulnerability description

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.


How to mitigate CVE-2020-8131

Install updates from vendor's website.

Sources