Description
fstream before 1.0.12 is vulnerable to Arbitrary File Overwrite. Extracting tarballs containing a hardlink to a file that already exists in the system, and a file that matches the hardlink, will overwrite the system's file with the contents of the extracted file. The fstream.DirWriter() function is vulnerable.
Remediation
References
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html
https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22
https://usn.ubuntu.com/4123-1/
https://www.npmjs.com/advisories/886
Related Vulnerabilities
CVE-2021-29442 Vulnerability in maven package com.alibaba.nacos:nacos-common
CVE-2023-24057 Vulnerability in maven package ca.uhn.hapi.fhir:org.hl7.fhir.utilities
CVE-2022-36895 Vulnerability in maven package com.compuware.jenkins:compuware-topaz-utilities
CVE-2020-7778 Vulnerability in npm package systeminformation
CVE-2020-5289 Vulnerability in maven package com.yahoo.elide:elide-core