CVE-2019-13173

Publication date 2 July 2019

Last updated 25 August 2025


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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.

From the Ubuntu Security Team

It was discovered that npm/fstream incorrectly handled certain crafted tarballs. An attacker could use this vulnerability to write aritrary files to the filesystem.

Read the notes from the security team

Status

Package Ubuntu Release Status
node-fstream 22.04 LTS jammy
Fixed in 1.0.12-1
21.10 impish
Fixed in 1.0.12-1
21.04 hirsute
Fixed in 1.0.12-1
20.10 groovy
Fixed in 1.0.12-1
20.04 LTS focal
Fixed in 1.0.12-1
19.10 eoan
Fixed in 1.0.12-1
19.04 disco
Fixed in 1.0.10-1ubuntu0.19.04.2
18.10 cosmic Ignored end of life
18.04 LTS bionic
Fixed in 1.0.10-1ubuntu0.18.04.1
16.04 LTS xenial
Fixed in 0.1.24-1ubuntu0.16.04.1~esm1
14.04 LTS trusty
Fixed in 0.1.24-1ubuntu0.14.04.1~esm1

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Notes


ebarretto

According to a Github comment, the fix might not be enough.

Severity score breakdown

CVSS version: CVSS v3.0

Base score 7.5 · High

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References

Related Ubuntu Security Notices (USN)

    • USN-4123-1
    • npm/fstream vulnerability
    • 5 September 2019

Other references


Access our resources on patching vulnerabilities