GHSA-pq67-2wwv-3xjx

Suggest an improvement
Source
https://github.com/advisories/GHSA-pq67-2wwv-3xjx
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-pq67-2wwv-3xjx/GHSA-pq67-2wwv-3xjx.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-pq67-2wwv-3xjx
Aliases
Related
Published
2025-03-27T18:31:28Z
Modified
2025-03-28T22:27:13.343264Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File
Details

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.

This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.7.

Database specific
{
    "nvd_published_at": "2025-03-27T17:15:53Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-28T22:11:42Z"
}
References

Affected packages

npm / tar-fs

Package

Affected ranges

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

npm / tar-fs

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.1.2

npm / tar-fs

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.0.8

Database specific

{
    "last_known_affected_version_range": "< 3.0.7"
}