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
https://www.npmjs.com/advisories/886
https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html
http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html
https://usn.ubuntu.com/4123-1/
Related Vulnerabilities
CVE-2018-11694 Vulnerability in maven package org.webjars.npm:node-sass
CVE-2023-25766 Vulnerability in maven package org.jenkins-ci.plugins:azure-credentials
CVE-2023-40826 Vulnerability in maven package org.pf4j:pf4j
CVE-2016-1000344 Vulnerability in maven package org.bouncycastle:bcprov-jdk15on
CVE-2023-35925 Vulnerability in maven package com.fastasyncworldedit:fastasyncworldedit-bukkit