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: 8.4 [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]
CVE-ID: CVE-2019-10773
CWE-ID: CWE-59
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

yarn
Fedora
nodejs-yarn

How to mitigate CVE-2019-10773

Install update from vendor's website.

yarn - update to 1.21.1
nodejs-yarn - addressed in versions 1.21.1-1.fc30, 1.21.1-1.fc31

External References

Related Security Bulletins