Link following in yarn - CVE-2019-10773

 

Link following in yarn - CVE-2019-10773

Published: December 16, 2019 / Updated: July 17, 2020


Vulnerability identifier: #VU30550
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2019-10773
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Yarn
Affected software:
yarn

Detailed vulnerability description

The vulnerability allows a local non-authenticated attacker to execute arbitrary code.

In Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially crafted "bin" keys. Existing files could be overwritten depending on the current user permission set.


How to mitigate CVE-2019-10773

Install update from vendor's website.

Sources