Skip to content
OpenAdvisories
High · 7.5 CVE-2018-20834 EUVD-2019-0468GHSA-j44m-qm6p-hp7m

Arbitrary File Overwrite in tar

Published Apr 30, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

A vulnerability was found in node-tar before version 4.4.2 (excluding version 2.2.2). An Arbitrary File Overwrite issue exists when extracting a tarball containing a hardlink to a file that already exists on the system, in conjunction with a later plain file with the same name as the hardlink. This plain file content replaces the existing file content. A patch has been applied to node-tar v2.2.2).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-tar 4.4.4+ds1-2 —
Debian 13 node-tar 4.4.4+ds1-2 —
Debian 12 node-tar 4.4.4+ds1-2 —
ReleasePackageFixed inAdvisory
RHEL 3 rh-nodejs8-nodejs +2 8.16.0-1.el7 RHSA-2019:1821
RHEL 3 rh-nodejs8-npm 6.4.1-8.16.0.1.el7 RHSA-2019:1821

Affected packages

EcosystemPackageAffectedFixedRecord
npm tar >= 3.0.0, < 4.4.2 4.4.2 GHSA-j44m-qm6p-hp7m
npm tar < 2.2.2 2.2.2 GHSA-j44m-qm6p-hp7m

Advisories 3

References