GHSA-j44m-qm6p-hp7m

Suggest an improvement
Source
https://github.com/advisories/GHSA-j44m-qm6p-hp7m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/05/GHSA-j44m-qm6p-hp7m/GHSA-j44m-qm6p-hp7m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j44m-qm6p-hp7m
Aliases
Published
2019-05-01T18:37:31Z
Modified
2023-11-29T22:25:48Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Arbitrary File Overwrite in tar
Details

Versions of tar prior to 4.4.2 for 4.x and 2.2.2 for 2.x 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.

Recommendation

For tar 4.x, upgrade to version 4.4.2 or later. For tar 2.x, upgrade to version 2.2.2 or later.

References

Affected packages

npm / tar

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
4.4.2

Ecosystem specific

{
    "affected_functions": [
        "(tar).Unpack"
    ]
}

npm / tar

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.2

Ecosystem specific

{
    "affected_functions": [
        "(tar).Extract"
    ]
}