Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXhmN3ctcjQ1My1tNTZj
Arbitrary File Overwrite in fstream
Versions of fstream
prior to 1.0.12 are 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.
Recommendation
Upgrade to version 1.0.12 or later.
Permalink: https://github.com/advisories/GHSA-xf7w-r453-m56cJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXhmN3ctcjQ1My1tNTZj
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 5 years ago
Updated: about 1 year ago
CVSS Score: 7.5
CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Percentage: 0.00239
EPSS Percentile: 0.62516
Identifiers: GHSA-xf7w-r453-m56c, CVE-2019-13173
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-13173
- https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22
- https://usn.ubuntu.com/4123-1/
- https://www.npmjs.com/advisories/886
- 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/advisories/GHSA-xf7w-r453-m56c
Blast Radius: 44.8
Affected Packages
npm:fstream
Dependent packages: 750Dependent repositories: 953,814
Downloads: 17,897,224 last month
Affected Version Ranges: < 1.0.12
Fixed in: 1.0.12
All affected versions: 0.0.0, 0.0.1, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.1.20, 0.1.21, 0.1.22, 0.1.23, 0.1.24, 0.1.25, 0.1.26, 0.1.27, 0.1.28, 0.1.29, 0.1.30, 0.1.31, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11
All unaffected versions: 1.0.12