# CVE-2019-13173: Arbitrary File Overwrite in fstream

- Severity: High 7.5 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.42%, higher than 84% of CVEs (2026-12-01)
- Published: 2019-05-30T17:19:34.000Z
- Modified: 2026-06-17T02:16:13.180Z
- Also known as: GHSA-xf7w-r453-m56c
- Weaknesses: CWE-59
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- fstream (npm): before 1.0.12
- fstream_project fstream: before 1.0.12

## Every score

- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://www.npmjs.com/advisories/886> (patch, vendor-advisory, web)
- <https://github.com/npm/fstream/commit/6a77d2fa6e1462693cf8e46f930da96ec1b0bb22> (patch, third-party-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00010.html> (vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00052.html> (vendor-advisory, web)
- <https://usn.ubuntu.com/4123-1/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-13173> (advisory)
- <https://usn.ubuntu.com/4123-1> (web)

## Sources

- CVE List: [CVE-2019-13173](https://www.cve.org/CVERecord?id=CVE-2019-13173), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-xf7w-r453-m56c](https://github.com/advisories/GHSA-xf7w-r453-m56c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2019-13173](https://nvd.nist.gov/vuln/detail/CVE-2019-13173), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-13173 · Whole record: https://cve.day/CVE-2019-13173.json · Rebuilt by cve.day 2026-11-25T22:57:45.403Z
